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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.0012/0.0012, allocations: 174.2 kB / 16.76 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.383/1.383, allocations: 205 MB / 222.6 MB, free: 9.141 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.0008706/0.0008706, allocations: 104.4 kB / 270.5 MB, free: 8.664 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0723/0.0723, allocations: 12.57 MB / 331 MB, free: 12.06 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003386/0.0003387, allocations: 12 kB / 391.7 MB, free: 66.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07661/0.07697, allocations: 49.98 MB / 441.7 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.001688/0.0787, allocations: 1.566 MB / 443.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.07993, allocations: 0.7099 MB / 444 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001784/0.08013, allocations: 3.938 kB / 444 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.0803, allocations: 19.86 kB / 444 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001548/0.08047, allocations: 19.86 kB / 444 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000534/0.08101, allocations: 135.8 kB / 444.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001653/0.08118, allocations: 151.5 kB / 444.3 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.08131, allocations: 49.55 kB / 444.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.481e-05/0.08142, allocations: 47.7 kB / 444.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.708e-05/0.08152, allocations: 51.66 kB / 444.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.08155, allocations: 4 kB / 444.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.524e-05/0.08164, allocations: 35.97 kB / 444.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.432e-05/0.08172, allocations: 31.89 kB / 444.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.3e-05/0.08177, allocations: 63.48 kB / 444.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001414/0.08192, allocations: 128 kB / 444.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.08193, allocations: 0 / 444.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.08194, allocations: 0 / 444.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.08195, allocations: 0 / 444.7 MB, free: 13.36 MB / 298.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.0005669/0.08252, allocations: 458.9 kB / 445.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.08257, allocations: 16.03 kB / 445.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.195e-05/0.08264, allocations: 16.75 kB / 445.2 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002532/0.0829, allocations: 244 kB / 445.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.08292, allocations: 8.562 kB / 445.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.098e-05/0.08295, allocations: 12.12 kB / 445.4 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006389/0.08359, allocations: 357.9 kB / 445.8 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.08362, allocations: 0 / 445.8 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.08364, allocations: 0 / 445.8 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.08365, allocations: 4 kB / 445.8 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002063/0.08387, allocations: 91.94 kB / 445.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003023/0.08418, allocations: 345.5 kB / 446.2 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003862/0.08458, allocations: 284.5 kB / 446.5 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.08475, allocations: 113.7 kB / 446.6 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004643/0.08522, allocations: 0.5856 MB / 447.2 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.689e-05/0.08525, allocations: 38.55 kB / 447.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.593e-06/0.08526, allocations: 0 / 447.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005022/0.08577, allocations: 254.2 kB / 447.5 MB, free: 10.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.138e-05/0.08583, allocations: 116.6 kB / 447.6 MB, free: 10.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.08596, allocations: 202.3 kB / 447.8 MB, free: 9.883 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.08598, allocations: 29.7 kB / 447.8 MB, free: 9.848 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.815e-05/0.08603, allocations: 104.6 kB / 447.9 MB, free: 9.742 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.236e-05/0.08605, allocations: 19.83 kB / 447.9 MB, free: 9.723 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.476e-05/0.08608, allocations: 17.72 kB / 448 MB, free: 9.699 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.299e-05/0.08613, allocations: 330.8 kB / 448.3 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.022e-05/0.08621, allocations: 35.98 kB / 448.3 MB, free: 9.332 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.08632, allocations: 177 kB / 448.5 MB, free: 9.098 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.08649, allocations: 208.1 kB / 448.7 MB, free: 8.836 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.0865, allocations: 0 / 448.7 MB, free: 8.836 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002705/0.08678, allocations: 224.9 kB / 448.9 MB, free: 8.609 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.08681, allocations: 11.98 kB / 448.9 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.08682, allocations: 4.594 kB / 448.9 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.08684, allocations: 8 kB / 448.9 MB, free: 8.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.08697, allocations: 43.92 kB / 449 MB, free: 8.543 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.08698, allocations: 4 kB / 449 MB, free: 8.539 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.08711, allocations: 23.83 kB / 449 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.08713, allocations: 12 kB / 449 MB, free: 8.504 MB / 298.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 ($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 9.547e-05/0.08723, allocations: 157.5 kB / 449.2 MB, free: 8.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002513/0.08748, allocations: 173.2 kB / 449.3 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002876/0.08778, allocations: 190 kB / 449.5 MB, free: 7.977 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.0878, allocations: 4 kB / 449.5 MB, free: 7.973 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.08781, allocations: 4 kB / 449.5 MB, free: 7.969 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.08781, allocations: 0 / 449.5 MB, free: 7.969 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000147/0.08797, allocations: 233.4 kB / 449.8 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.08798, allocations: 0 / 449.8 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.08811, allocations: 43.84 kB / 449.8 MB, free: 7.648 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.08813, allocations: 3.984 kB / 449.8 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.08814, allocations: 8 kB / 449.8 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.08815, allocations: 0 / 449.8 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.08815, allocations: 0 / 449.8 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000313/0.08847, allocations: 292.1 kB / 450.1 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.74e-05/0.08855, allocations: 124.8 kB / 450.2 MB, free: 7.191 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.132e-05/0.08859, allocations: 4 kB / 450.2 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.08872, allocations: 19.98 kB / 450.2 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.621e-05/0.08875, allocations: 0 / 450.2 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.08877, allocations: 7.984 kB / 450.2 MB, free: 7.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.973e-05/0.08885, allocations: 144.4 kB / 450.4 MB, free: 7.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08886, allocations: 0 / 450.4 MB, free: 7.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002767/0.08914, allocations: 28 kB / 450.4 MB, free: 6.992 MB / 298.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 (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.0001293/0.08928, allocations: 123.1 kB / 450.5 MB, free: 6.863 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002652/0.08955, allocations: 152.9 kB / 450.7 MB, free: 6.715 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.08956, allocations: 4.062 kB / 450.7 MB, free: 6.711 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.375e-05/0.0896, allocations: 8 kB / 450.7 MB, free: 6.703 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005211/0.09013, allocations: 153.5 kB / 450.8 MB, free: 6.547 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005249/0.09067, allocations: 408.5 kB / 451.2 MB, free: 6.113 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001296/0.09081, allocations: 0.7324 MB / 452 MB, free: 5.355 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.503e-05/0.09085, allocations: 19.44 kB / 452 MB, free: 5.336 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.09086, allocations: 0 / 452 MB, free: 5.336 MB / 298.7 MB Notification: Performance of Templates: time 0.003675/0.09454, allocations: 2.195 MB / 454.2 MB, free: 3.141 MB / 298.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches