Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002977/0.002983, allocations: 188.8 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.163/4.163, allocations: 205.4 MB / 222.6 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001862/0.001862, allocations: 98.8 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2003/0.2003, allocations: 12.59 MB / 331.8 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 13.34 kB / 392 MB, free: 54.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1545, allocations: 50.37 MB / 442.3 MB, free: 11.59 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003921/0.1585, allocations: 1.523 MB / 443.9 MB, free: 10.05 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002559/0.1611, allocations: 0.6635 MB / 444.5 MB, free: 9.379 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003201/0.1616, allocations: 0 / 444.5 MB, free: 9.379 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.25e-05/0.1617, allocations: 11.88 kB / 444.5 MB, free: 9.367 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002979/0.162, allocations: 27.89 kB / 444.6 MB, free: 9.34 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001134/0.1632, allocations: 133.7 kB / 444.7 MB, free: 9.211 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003776/0.1636, allocations: 91.73 kB / 444.8 MB, free: 9.121 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002418/0.1638, allocations: 45.72 kB / 444.8 MB, free: 9.074 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002074/0.1641, allocations: 35.84 kB / 444.9 MB, free: 9.039 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001707/0.1643, allocations: 51.69 kB / 444.9 MB, free: 8.988 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.1643, allocations: 4 kB / 444.9 MB, free: 8.984 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002008/0.1645, allocations: 31.97 kB / 445 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.1647, allocations: 35.84 kB / 445 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.343e-05/0.1648, allocations: 45.64 kB / 445 MB, free: 8.867 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003734/0.1652, allocations: 135.7 kB / 445.2 MB, free: 8.734 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.1652, allocations: 4 kB / 445.2 MB, free: 8.73 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1652, allocations: 0 / 445.2 MB, free: 8.73 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.1653, allocations: 0 / 445.2 MB, free: 8.73 MB / 282.7 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.001175/0.1664, allocations: 451.6 kB / 445.6 MB, free: 8.242 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/0.1665, allocations: 8.031 kB / 445.6 MB, free: 8.234 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.97e-05/0.1666, allocations: 15.81 kB / 445.6 MB, free: 8.219 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004882/0.1672, allocations: 238.8 kB / 445.9 MB, free: 7.945 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.399e-05/0.1672, allocations: 8.188 kB / 445.9 MB, free: 7.938 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.828e-05/0.1673, allocations: 8 kB / 445.9 MB, free: 7.93 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.1688, allocations: 342.7 kB / 446.2 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.542e-05/0.1689, allocations: 0 / 446.2 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.848e-05/0.169, allocations: 8 kB / 446.2 MB, free: 7.57 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.169, allocations: 4 kB / 446.2 MB, free: 7.566 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006081/0.1696, allocations: 99.83 kB / 446.3 MB, free: 7.469 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00075/0.1704, allocations: 337.6 kB / 446.7 MB, free: 7.086 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.1715, allocations: 290.4 kB / 446.9 MB, free: 6.766 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001159/0.1727, allocations: 0.5857 MB / 447.5 MB, free: 6.051 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.778e-05/0.1728, allocations: 34.56 kB / 447.6 MB, free: 6.008 MB / 282.7 MB Notification: Performance of pre-optimization done (n=19): time 7.134e-06/0.1729, allocations: 4 kB / 447.6 MB, free: 6.004 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.001521/0.1744, allocations: 342 kB / 447.9 MB, free: 5.648 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.1746, allocations: 118.9 kB / 448 MB, free: 5.508 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003649/0.175, allocations: 194.2 kB / 448.2 MB, free: 5.305 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.377e-05/0.1751, allocations: 33.64 kB / 448.2 MB, free: 5.266 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.1752, allocations: 171 kB / 448.4 MB, free: 5.098 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.189e-05/0.1752, allocations: 15.89 kB / 448.4 MB, free: 5.082 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.603e-05/0.1753, allocations: 0 / 448.4 MB, free: 5.082 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1754, allocations: 322.8 kB / 448.7 MB, free: 4.758 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002125/0.1756, allocations: 44.39 kB / 448.8 MB, free: 4.715 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003275/0.176, allocations: 161.9 kB / 448.9 MB, free: 4.496 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000277/0.1763, allocations: 67.94 kB / 449 MB, free: 4.43 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.075e-05/0.1763, allocations: 4 kB / 449 MB, free: 4.426 MB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0008046/0.1772, allocations: 209.7 kB / 449.2 MB, free: 4.215 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.1772, allocations: 15.98 kB / 449.2 MB, free: 4.199 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/0.1773, allocations: 4 kB / 449.2 MB, free: 4.195 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.777e-05/0.1773, allocations: 8 kB / 449.2 MB, free: 4.188 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003688/0.1777, allocations: 39.92 kB / 449.3 MB, free: 4.148 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.957e-05/0.1778, allocations: 7.984 kB / 449.3 MB, free: 4.141 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000327/0.1781, allocations: 23.84 kB / 449.3 MB, free: 4.117 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.192e-05/0.1782, allocations: 8 kB / 449.3 MB, free: 4.109 MB / 282.7 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 (sample.noise.seedState[3],$CLKPRE.sample.noise.seedState[3],sample.noise.seedState[2],$CLKPRE.sample.noise.seedState[2],sample.noise.seedState[1],$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003039/0.1785, allocations: 165.3 kB / 449.5 MB, free: 3.938 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007581/0.1793, allocations: 161.4 kB / 449.6 MB, free: 3.773 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008377/0.1801, allocations: 195.2 kB / 449.8 MB, free: 3.578 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/0.1802, allocations: 4 kB / 449.8 MB, free: 3.574 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.1802, allocations: 0 / 449.8 MB, free: 3.574 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.1802, allocations: 0 / 449.8 MB, free: 3.574 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004626/0.1807, allocations: 221.6 kB / 450 MB, free: 3.309 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-05/0.1808, allocations: 0 / 450 MB, free: 3.309 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004629/0.1854, allocations: 31.98 kB / 450.1 MB, free: 3.277 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.586e-05/0.1855, allocations: 3.938 kB / 450.1 MB, free: 3.273 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.021e-05/0.1856, allocations: 15.98 kB / 450.1 MB, free: 3.258 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.598e-06/0.1856, allocations: 3.953 kB / 450.1 MB, free: 3.254 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.1856, allocations: 0 / 450.1 MB, free: 3.254 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.1867, allocations: 309.7 kB / 450.4 MB, free: 2.926 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001883/0.1869, allocations: 116.8 kB / 450.5 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.292e-05/0.187, allocations: 8 kB / 450.5 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003474/0.1874, allocations: 11.98 kB / 450.5 MB, free: 2.773 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.107e-05/0.1874, allocations: 4 kB / 450.5 MB, free: 2.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.717e-05/0.1875, allocations: 7.938 kB / 450.5 MB, free: 2.762 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002441/0.1878, allocations: 144.4 kB / 450.7 MB, free: 2.621 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.1878, allocations: 3.938 kB / 450.7 MB, free: 2.617 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007929/0.1886, allocations: 32 kB / 450.7 MB, free: 2.586 MB / 282.7 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 (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.0003388/0.189, allocations: 115.2 kB / 450.8 MB, free: 2.465 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009058/0.1899, allocations: 152.3 kB / 451 MB, free: 2.316 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.1899, allocations: 0 / 451 MB, free: 2.316 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.1901, allocations: 15.98 kB / 451 MB, free: 2.301 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.1913, allocations: 151 kB / 451.1 MB, free: 2.148 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.1927, allocations: 401.1 kB / 451.5 MB, free: 1.727 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004511/0.1973, allocations: 0.7363 MB / 452.3 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.1975, allocations: 23.42 kB / 452.3 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of SimCode: time 2.164e-06/0.1976, allocations: 4 kB / 452.3 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of Templates: time 0.01428/0.2119, allocations: 2.17 MB / 454.5 MB, free: 14.77 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches