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.001503/0.001503, allocations: 182.3 kB / 13.23 MB, free: 2.086 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.718/1.718, allocations: 205.2 MB / 219 MB, free: 9.207 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.0008676/0.0008673, allocations: 88.27 kB / 267.1 MB, free: 9.277 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.08433/0.08433, allocations: 12.58 MB / 327.7 MB, free: 12.5 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.431e-05/3.434e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1127, allocations: 50.37 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4033/0.5161, allocations: 79.69 MB / 0.504 GB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/0.5164, allocations: 82.22 kB / 0.504 GB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01181/0.5282, allocations: 4.589 MB / 0.5085 GB, free: 10.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5283, allocations: 4 kB / 0.5085 GB, free: 10.56 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.5283, allocations: 5.938 kB / 0.5085 GB, free: 10.56 MB / 330.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.0004454/0.5288, allocations: 444.2 kB / 0.509 GB, free: 10.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.5288, allocations: 7.656 kB / 0.509 GB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.244e-05/0.5289, allocations: 19.47 kB / 0.509 GB, free: 10.13 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002788/0.5291, allocations: 242.9 kB / 0.5092 GB, free: 9.898 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.5292, allocations: 7.781 kB / 0.5092 GB, free: 9.898 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.09e-05/0.5292, allocations: 7.531 kB / 0.5092 GB, free: 9.898 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004649/0.5297, allocations: 285.9 kB / 0.5095 GB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.5297, allocations: 0 / 0.5095 GB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.5297, allocations: 0 / 0.5095 GB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.5297, allocations: 3.844 kB / 0.5095 GB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001096/0.5298, allocations: 70.66 kB / 0.5096 GB, free: 9.766 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003862/0.5302, allocations: 358 kB / 0.5099 GB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002751/0.5305, allocations: 232.1 kB / 0.5101 GB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.5306, allocations: 79.88 kB / 0.5102 GB, free: 9.27 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004317/0.5311, allocations: 0.58 MB / 0.5108 GB, free: 8.594 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.954e-05/0.5311, allocations: 34.41 kB / 0.5108 GB, free: 8.555 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 2.364e-06/0.5311, allocations: 96 / 0.5108 GB, free: 8.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.0002853/0.5314, allocations: 157.2 kB / 0.511 GB, free: 8.492 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.5315, allocations: 113.5 kB / 0.5111 GB, free: 8.367 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.5316, allocations: 175.5 kB / 0.5112 GB, free: 8.258 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.5317, allocations: 28.89 kB / 0.5113 GB, free: 8.227 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.174e-05/0.5317, allocations: 110 kB / 0.5114 GB, free: 8.137 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.5318, allocations: 19.33 kB / 0.5114 GB, free: 8.125 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.161e-06/0.5318, allocations: 3.375 kB / 0.5114 GB, free: 8.125 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.758e-05/0.5318, allocations: 325.2 kB / 0.5117 GB, free: 7.809 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.868e-05/0.5319, allocations: 33.89 kB / 0.5117 GB, free: 7.805 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.92e-05/0.532, allocations: 156.9 kB / 0.5119 GB, free: 7.641 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.905e-05/0.5321, allocations: 67.62 kB / 0.5119 GB, free: 7.617 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.5321, allocations: 0 / 0.5119 GB, free: 7.617 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000219/0.5323, allocations: 209 kB / 0.5121 GB, free: 7.527 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.5323, allocations: 3.719 kB / 0.5121 GB, free: 7.527 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.5323, allocations: 7.719 kB / 0.5122 GB, free: 7.527 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.5323, allocations: 7.766 kB / 0.5122 GB, free: 7.523 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.5325, allocations: 46.42 kB / 0.5122 GB, free: 7.516 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.5325, allocations: 7.531 kB / 0.5122 GB, free: 7.516 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.5326, allocations: 23.5 kB / 0.5122 GB, free: 7.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.5326, allocations: 14.22 kB / 0.5123 GB, free: 7.5 MB / 330.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 () * 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 7.355e-05/0.5327, allocations: 130.4 kB / 0.5124 GB, free: 7.383 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001738/0.5329, allocations: 143.8 kB / 0.5125 GB, free: 7.332 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002335/0.5331, allocations: 156.6 kB / 0.5127 GB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.5331, allocations: 3.953 kB / 0.5127 GB, free: 7.277 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.5332, allocations: 0 / 0.5127 GB, free: 7.277 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.5332, allocations: 7.875 kB / 0.5127 GB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000162/0.5333, allocations: 229.8 kB / 0.5129 GB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.5333, allocations: 3.938 kB / 0.5129 GB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.5335, allocations: 41.94 kB / 0.5129 GB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.5335, allocations: 4 kB / 0.5129 GB, free: 7.027 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.5335, allocations: 3.781 kB / 0.5129 GB, free: 7.027 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.5335, allocations: 0 / 0.5129 GB, free: 7.027 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.5335, allocations: 3.953 kB / 0.5129 GB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002178/0.5338, allocations: 271.8 kB / 0.5132 GB, free: 6.84 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.925e-05/0.5338, allocations: 118.7 kB / 0.5133 GB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.093e-05/0.5339, allocations: 11.77 kB / 0.5133 GB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.534, allocations: 7.75 kB / 0.5133 GB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.892e-05/0.534, allocations: 7.922 kB / 0.5133 GB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.5341, allocations: 11.44 kB / 0.5134 GB, free: 6.715 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.83e-05/0.5342, allocations: 135.8 kB / 0.5135 GB, free: 6.633 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5342, allocations: 0 / 0.5135 GB, free: 6.633 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002737/0.5344, allocations: 41.17 kB / 0.5135 GB, free: 6.629 MB / 330.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 () * 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.000134/0.5346, allocations: 106.5 kB / 0.5136 GB, free: 6.539 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001933/0.5348, allocations: 124 kB / 0.5137 GB, free: 6.516 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.5348, allocations: 0 / 0.5137 GB, free: 6.516 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.498e-05/0.5348, allocations: 6.906 kB / 0.5138 GB, free: 6.516 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003882/0.5352, allocations: 141 kB / 0.5139 GB, free: 6.457 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003638/0.5356, allocations: 221.2 kB / 0.5141 GB, free: 6.32 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001743/0.5358, allocations: 0.7388 MB / 0.5148 GB, free: 5.594 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.151e-05/0.5358, allocations: 16.23 kB / 0.5148 GB, free: 5.59 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.424e-05/0.5359, allocations: 15.19 kB / 0.5148 GB, free: 5.582 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5359, allocations: 0 / 0.5148 GB, free: 5.582 MB / 330.7 MB Notification: Performance of Templates: time 0.004253/0.5401, allocations: 2.123 MB / 0.5169 GB, free: 4.531 MB / 330.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/jenkins/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