Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 177.9 kB / 16.63 MB, free: 6.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.644/1.644, allocations: 205.4 MB / 222.8 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09039/0.09039, allocations: 12.6 MB / 283.7 MB, free: 8.684 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007262/0.0007262, allocations: 27.94 kB / 344.5 MB, free: 21.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1171, allocations: 50.38 MB / 394.9 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.002257/0.1195, allocations: 1.524 MB / 396.4 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.1207, allocations: 0.6326 MB / 397.1 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001945/0.1209, allocations: 4 kB / 397.1 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.121, allocations: 11.86 kB / 397.1 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001236/0.1212, allocations: 19.86 kB / 397.1 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003967/0.1216, allocations: 87.78 kB / 397.2 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001728/0.1218, allocations: 123.6 kB / 397.3 MB, free: 380 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.1219, allocations: 41.7 kB / 397.4 MB, free: 340 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.122, allocations: 39.78 kB / 397.4 MB, free: 300 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.484e-05/0.1221, allocations: 39.67 kB / 397.4 MB, free: 260 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.18e-05/0.1221, allocations: 4 kB / 397.4 MB, free: 256 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.632e-05/0.1222, allocations: 4 kB / 397.4 MB, free: 252 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.976e-05/0.1222, allocations: 19.92 kB / 397.5 MB, free: 232 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.759e-05/0.1223, allocations: 45.58 kB / 397.5 MB, free: 180 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001265/0.1224, allocations: 100 kB / 397.6 MB, free: 80 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1224, allocations: 0 / 397.6 MB, free: 80 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1224, allocations: 0 / 397.6 MB, free: 80 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.1224, allocations: 0 / 397.6 MB, free: 80 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006193/0.1231, allocations: 434.9 kB / 398 MB, free: 15.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.1231, allocations: 8.031 kB / 398 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.652e-05/0.1232, allocations: 23.72 kB / 398.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.1235, allocations: 223.8 kB / 398.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.1235, allocations: 8.188 kB / 398.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.892e-05/0.1235, allocations: 12 kB / 398.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005635/0.1241, allocations: 290.8 kB / 398.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.1241, allocations: 0 / 398.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.1241, allocations: 0 / 398.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.1242, allocations: 4 kB / 398.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000211/0.1244, allocations: 95.77 kB / 398.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004775/0.1249, allocations: 431.4 kB / 399.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004264/0.1253, allocations: 310 kB / 399.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000191/0.1255, allocations: 116.4 kB / 399.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/0.1255, allocations: 7.938 kB / 399.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.1256, allocations: 42.55 kB / 399.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.372e-06/0.1256, allocations: 0 / 399.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005433/0.1261, allocations: 225.2 kB / 399.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.1263, allocations: 200.3 kB / 400 MB, free: 13.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.1264, allocations: 186.8 kB / 400.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/0.1265, allocations: 29.7 kB / 400.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.575e-05/0.1266, allocations: 100.1 kB / 400.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.982e-05/0.1266, allocations: 19.83 kB / 400.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.633e-06/0.1266, allocations: 4 kB / 400.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.1267, allocations: 322.8 kB / 400.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.572e-05/0.1268, allocations: 23.98 kB / 400.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.127, allocations: 133.7 kB / 400.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.472e-05/0.1271, allocations: 47.95 kB / 400.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1271, allocations: 0 / 400.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002666/0.1273, allocations: 169.2 kB / 401 MB, free: 12.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.1274, allocations: 4 kB / 401 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.1274, allocations: 4 kB / 401 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.1274, allocations: 8 kB / 401 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.1275, allocations: 31.92 kB / 401 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.279e-05/0.1275, allocations: 12.42 kB / 401.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.481e-05/0.1277, allocations: 20.09 kB / 401.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.545e-05/0.1277, allocations: 16.33 kB / 401.1 MB, free: 12.19 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001149/0.1278, allocations: 137.5 kB / 401.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000269/0.1281, allocations: 157.3 kB / 401.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.878e-05/0.1281, allocations: 25.39 kB / 401.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.1282, allocations: 0 / 401.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.1282, allocations: 4 kB / 401.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.1282, allocations: 0 / 401.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002747/0.1285, allocations: 217.5 kB / 401.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1285, allocations: 0 / 401.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001427/0.1286, allocations: 47.91 kB / 401.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.1286, allocations: 3.938 kB / 401.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.1286, allocations: 4.031 kB / 401.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.1287, allocations: 4 kB / 401.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.1287, allocations: 4 kB / 401.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004061/0.1291, allocations: 373 kB / 402 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.047e-05/0.1292, allocations: 112.8 kB / 402.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.639e-05/0.1292, allocations: 4 kB / 402.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.1294, allocations: 15.98 kB / 402.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.842e-05/0.1294, allocations: 8 kB / 402.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.198e-06/0.1294, allocations: 4 kB / 402.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001128/0.1295, allocations: 137.1 kB / 402.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1295, allocations: 0 / 402.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003239/0.1299, allocations: 20 kB / 402.3 MB, free: 10.83 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001156/0.13, allocations: 107.1 kB / 402.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002882/0.1303, allocations: 115.8 kB / 402.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.1303, allocations: 0 / 402.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.7e-05/0.1304, allocations: 16.94 kB / 402.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000671/0.131, allocations: 116.4 kB / 402.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000867/0.1319, allocations: 420.1 kB / 403.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.1323, allocations: 0.7202 MB / 403.8 MB, free: 9.277 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.038e-05/0.1323, allocations: 21.55 kB / 403.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.712e-05/0.1324, allocations: 19.44 kB / 403.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1324, allocations: 0 / 403.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of Templates: time 0.004868/0.1373, allocations: 1.483 MB / 405.3 MB, free: 7.758 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:hold.y,sample.y,shiftSample.y,time Variables in the result:hold.bits,hold.compDelay.resolution,hold.compDelay.shiftCounter,hold.computationalDelay,hold.hold1.y_start,hold.limited,hold.limiter.uMax,hold.limiter.uMin,hold.quantized,hold.resolution,hold.shiftCounter,hold.y,hold.yMax,hold.yMin,hold.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample.resolution,shiftSample.shiftCounter,shiftSample.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time