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.00119/0.00119, allocations: 179.4 kB / 15.8 MB, free: 6.34 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.534/1.534, allocations: 205.4 MB / 221.9 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.0009177/0.0009173, allocations: 94.86 kB / 270.3 MB, free: 13.35 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.08423/0.08423, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004293/0.0004293, allocations: 12.78 kB / 392 MB, free: 54.85 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1127, allocations: 50.37 MB / 442.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1198/0.2326, allocations: 79.77 MB / 0.5099 GB, free: 11.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.2329, allocations: 79.95 kB / 0.51 GB, free: 10.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01323/0.2462, allocations: 4.604 MB / 0.5145 GB, free: 6.367 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2462, allocations: 0 / 0.5145 GB, free: 6.367 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.2463, allocations: 4 kB / 0.5145 GB, free: 6.363 MB / 362.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.0007132/0.247, allocations: 478.6 kB / 0.5149 GB, free: 5.844 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.247, allocations: 12.03 kB / 0.515 GB, free: 5.832 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.759e-05/0.2471, allocations: 15.81 kB / 0.515 GB, free: 5.816 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003802/0.2475, allocations: 239.1 kB / 0.5152 GB, free: 5.543 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.2475, allocations: 8.188 kB / 0.5152 GB, free: 5.535 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.717e-05/0.2475, allocations: 12 kB / 0.5152 GB, free: 5.523 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007022/0.2483, allocations: 342.9 kB / 0.5155 GB, free: 5.168 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.2483, allocations: 0 / 0.5155 GB, free: 5.168 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/0.2483, allocations: 8 kB / 0.5155 GB, free: 5.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.2483, allocations: 4 kB / 0.5156 GB, free: 5.156 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002384/0.2486, allocations: 99.88 kB / 0.5156 GB, free: 5.059 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005444/0.2491, allocations: 353.5 kB / 0.516 GB, free: 4.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004986/0.2496, allocations: 282.2 kB / 0.5163 GB, free: 4.348 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006246/0.2503, allocations: 0.5779 MB / 0.5168 GB, free: 3.641 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.2503, allocations: 34.56 kB / 0.5169 GB, free: 3.598 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 2.895e-06/0.2503, allocations: 96 / 0.5169 GB, free: 3.598 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0006492/0.251, allocations: 341.4 kB / 0.5172 GB, free: 3.242 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.965e-05/0.2511, allocations: 122.8 kB / 0.5173 GB, free: 3.098 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.2513, allocations: 177.4 kB / 0.5175 GB, free: 2.914 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.2513, allocations: 29.7 kB / 0.5175 GB, free: 2.879 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.108e-05/0.2514, allocations: 104.6 kB / 0.5176 GB, free: 2.773 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.269e-05/0.2514, allocations: 15.8 kB / 0.5176 GB, free: 2.758 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-06/0.2514, allocations: 8 kB / 0.5176 GB, free: 2.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.2516, allocations: 326.8 kB / 0.5179 GB, free: 2.422 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.05e-05/0.2517, allocations: 36.34 kB / 0.518 GB, free: 2.387 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.2518, allocations: 169.9 kB / 0.5181 GB, free: 2.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001253/0.252, allocations: 67.95 kB / 0.5182 GB, free: 2.094 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.252, allocations: 0 / 0.5182 GB, free: 2.094 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.00034/0.2523, allocations: 217 kB / 0.5184 GB, free: 1.875 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.2524, allocations: 11.98 kB / 0.5184 GB, free: 1.863 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.2524, allocations: 4.594 kB / 0.5184 GB, free: 1.859 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.2524, allocations: 11.95 kB / 0.5184 GB, free: 1.848 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/0.2526, allocations: 47.91 kB / 0.5185 GB, free: 1.801 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.2526, allocations: 8 kB / 0.5185 GB, free: 1.793 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.2527, allocations: 23.97 kB / 0.5185 GB, free: 1.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.2527, allocations: 8 kB / 0.5185 GB, free: 1.762 MB / 362.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.0001506/0.2529, allocations: 157.4 kB / 0.5187 GB, free: 1.598 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003102/0.2532, allocations: 169.3 kB / 0.5188 GB, free: 1.426 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000366/0.2536, allocations: 183.4 kB / 0.519 GB, free: 1.238 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.336e-05/0.2536, allocations: 4 kB / 0.519 GB, free: 1.234 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.2536, allocations: 11.89 kB / 0.519 GB, free: 1.223 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.2536, allocations: 0 / 0.519 GB, free: 1.223 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002372/0.2539, allocations: 229.4 kB / 0.5192 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.333e-06/0.2539, allocations: 4 kB / 0.5192 GB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001513/0.254, allocations: 35.91 kB / 0.5193 GB, free: 0.9102 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.254, allocations: 4 kB / 0.5193 GB, free: 0.9062 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.2541, allocations: 7.938 kB / 0.5193 GB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2541, allocations: 0 / 0.5193 GB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2541, allocations: 0 / 0.5193 GB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004239/0.2545, allocations: 309.8 kB / 0.5196 GB, free: 0.5703 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.2546, allocations: 112.9 kB / 0.5197 GB, free: 452 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.2547, allocations: 11.98 kB / 0.5197 GB, free: 440 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.2548, allocations: 12 kB / 0.5197 GB, free: 428 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.68e-05/0.2549, allocations: 7.938 kB / 0.5197 GB, free: 420 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.836e-05/0.2549, allocations: 7.984 kB / 0.5197 GB, free: 412 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001315/0.255, allocations: 140.4 kB / 0.5198 GB, free: 272 kB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.255, allocations: 0 / 0.5198 GB, free: 272 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003012/0.2553, allocations: 35.94 kB / 0.5199 GB, free: 236 kB / 362.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.0001725/0.2555, allocations: 115.2 kB / 0.52 GB, free: 112 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.191/0.4466, allocations: 141.2 kB / 0.5201 GB, free: 85.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.218e-05/0.4466, allocations: 0 / 0.5201 GB, free: 85.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.539e-05/0.4467, allocations: 17.69 kB / 0.5201 GB, free: 85.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00076/0.4475, allocations: 147.8 kB / 0.5203 GB, free: 85.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007202/0.4482, allocations: 372.2 kB / 0.5206 GB, free: 85.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002129/0.4484, allocations: 0.7441 MB / 0.5214 GB, free: 84.89 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.766e-05/0.4485, allocations: 17.28 kB / 0.5214 GB, free: 84.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.286e-05/0.4486, allocations: 16.84 kB / 0.5214 GB, free: 84.88 MB / 362.7 MB Notification: Performance of SimCode: time 1.312e-06/0.4486, allocations: 0 / 0.5214 GB, free: 84.88 MB / 362.7 MB Notification: Performance of Templates: time 0.005916/0.4545, allocations: 2.085 MB / 0.5234 GB, free: 84.81 MB / 362.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