Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.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.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 104.1 kB / 16.45 MB, free: 6.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 186.4 kB / 17.38 MB, free: 5.656 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.586/1.586, allocations: 205.1 MB / 223.3 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0828/0.0828, allocations: 12.59 MB / 283.2 MB, free: 15.4 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.001958/0.001958, allocations: 86.47 kB / 394.2 MB, free: 45.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1263, allocations: 49.41 MB / 443.6 MB, free: 472 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003982/0.1303, allocations: 1.839 MB / 445.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.1321, allocations: 0.7215 MB / 446.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001879/0.1323, allocations: 3.938 kB / 446.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002467/0.1326, allocations: 23.8 kB / 446.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002279/0.1328, allocations: 31.77 kB / 446.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007082/0.1335, allocations: 159.6 kB / 446.4 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002683/0.1338, allocations: 143.6 kB / 446.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001867/0.134, allocations: 65.44 kB / 446.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.1341, allocations: 59.72 kB / 446.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.1343, allocations: 59.69 kB / 446.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.227e-05/0.1343, allocations: 16 kB / 446.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.1344, allocations: 55.97 kB / 446.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.1346, allocations: 35.89 kB / 446.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.1347, allocations: 75.48 kB / 446.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003085/0.135, allocations: 187.4 kB / 447 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.135, allocations: 0 / 447 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.135, allocations: 0 / 447 MB, free: 12.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.135, allocations: 0 / 447 MB, free: 12.98 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.000847/0.1359, allocations: 482.8 kB / 447.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.1359, allocations: 16.02 kB / 447.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.67e-05/0.136, allocations: 16.75 kB / 447.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003786/0.1364, allocations: 236 kB / 447.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.1364, allocations: 8.562 kB / 447.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.1364, allocations: 20.06 kB / 447.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006849/0.1371, allocations: 332.1 kB / 448.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1371, allocations: 7.938 kB / 448.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.1372, allocations: 8 kB / 448.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.1372, allocations: 0 / 448.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002289/0.1374, allocations: 83.94 kB / 448.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004575/0.1379, allocations: 341.5 kB / 448.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005326/0.1384, allocations: 266.2 kB / 448.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001944/0.1386, allocations: 102 kB / 448.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007174/0.1394, allocations: 0.5895 MB / 449.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.1394, allocations: 38.56 kB / 449.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.813e-06/0.1394, allocations: 0 / 449.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006282/0.1401, allocations: 237.2 kB / 449.8 MB, free: 9.902 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.1402, allocations: 118.8 kB / 449.9 MB, free: 9.762 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002109/0.1404, allocations: 194.3 kB / 450.1 MB, free: 9.562 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.1404, allocations: 25.7 kB / 450.1 MB, free: 9.531 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.26e-05/0.1405, allocations: 104.6 kB / 450.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.737e-05/0.1406, allocations: 11.91 kB / 450.2 MB, free: 9.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.715e-05/0.1406, allocations: 45.61 kB / 450.3 MB, free: 9.363 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.1408, allocations: 334.9 kB / 450.6 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.986e-05/0.1409, allocations: 35.98 kB / 450.6 MB, free: 8.992 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.1411, allocations: 169.1 kB / 450.8 MB, free: 8.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002541/0.1413, allocations: 196.1 kB / 451 MB, free: 8.516 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.1414, allocations: 0 / 451 MB, free: 8.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003428/0.1417, allocations: 221.6 kB / 451.2 MB, free: 8.293 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.1417, allocations: 4.469 kB / 451.2 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.1418, allocations: 12 kB / 451.2 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.1418, allocations: 4 kB / 451.2 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.1419, allocations: 43.92 kB / 451.3 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.142, allocations: 7.938 kB / 451.3 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.1421, allocations: 27.83 kB / 451.3 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.1421, allocations: 8 kB / 451.3 MB, free: 8.188 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample.noise.seedState[3],sample.noise.seedState[3],$CLKPRE.sample.noise.seedState[2],sample.noise.seedState[2],$CLKPRE.sample.noise.seedState[1],sample.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample.noise.seedState[3],sample.noise.seedState[2],sample.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001558/0.1423, allocations: 149.6 kB / 451.4 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00029/0.1426, allocations: 165.3 kB / 451.6 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003782/0.1429, allocations: 183.3 kB / 451.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.143, allocations: 0 / 451.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.143, allocations: 0 / 451.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.143, allocations: 4 kB / 451.8 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000303/0.1433, allocations: 225.4 kB / 452 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.1433, allocations: 7.938 kB / 452 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.1435, allocations: 35.97 kB / 452.1 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1435, allocations: 7.984 kB / 452.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.1435, allocations: 4 kB / 452.1 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1435, allocations: 0 / 452.1 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1435, allocations: 3.938 kB / 452.1 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004559/0.144, allocations: 280.1 kB / 452.3 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.1441, allocations: 120.8 kB / 452.5 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.799e-05/0.1441, allocations: 11.98 kB / 452.5 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.1443, allocations: 12 kB / 452.5 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.01e-05/0.1443, allocations: 0 / 452.5 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.1443, allocations: 11.98 kB / 452.5 MB, free: 6.875 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001382/0.1445, allocations: 152.1 kB / 452.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1445, allocations: 0 / 452.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003097/0.1448, allocations: 28 kB / 452.7 MB, free: 6.699 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001922/0.145, allocations: 119.2 kB / 452.8 MB, free: 6.574 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003341/0.1453, allocations: 135.8 kB / 452.9 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1453, allocations: 1.188 kB / 452.9 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.906e-05/0.1454, allocations: 11.98 kB / 452.9 MB, free: 6.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006497/0.146, allocations: 157.5 kB / 453.1 MB, free: 6.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000669/0.1467, allocations: 320.9 kB / 453.4 MB, free: 5.926 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.1471, allocations: 0.74 MB / 454.1 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.012e-05/0.1472, allocations: 13.55 kB / 454.2 MB, free: 5.148 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.849e-05/0.1472, allocations: 15.44 kB / 454.2 MB, free: 5.133 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1472, allocations: 0 / 454.2 MB, free: 5.133 MB / 334.1 MB Notification: Performance of Templates: time 0.00612/0.1533, allocations: 2.366 MB / 456.5 MB, free: 2.766 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches