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.001676/0.001676, allocations: 99.22 kB / 16.02 MB, free: 6.328 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.002514/0.002515, allocations: 196.8 kB / 16.95 MB, free: 6.145 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.606/1.606, allocations: 205.1 MB / 222.8 MB, free: 12.45 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.07409/0.07409, allocations: 12.57 MB / 282.7 MB, free: 15.65 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.001697/0.001697, allocations: 87.88 kB / 343 MB, free: 3.312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2597, allocations: 49.38 MB / 392.4 MB, free: 49.14 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003341/0.2631, allocations: 1.907 MB / 394.3 MB, free: 47.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.2644, allocations: 0.7087 MB / 395 MB, free: 47.33 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.2645, allocations: 6.594 kB / 395 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.2647, allocations: 17.2 kB / 395 MB, free: 47.31 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000148/0.2648, allocations: 19.67 kB / 395 MB, free: 47.3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000573/0.2654, allocations: 140.6 kB / 395.2 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002065/0.2656, allocations: 149.6 kB / 395.3 MB, free: 47.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000165/0.2658, allocations: 53.72 kB / 395.4 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.2659, allocations: 57.59 kB / 395.4 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.266, allocations: 65.09 kB / 395.5 MB, free: 47.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.706e-05/0.2661, allocations: 15.03 kB / 395.5 MB, free: 47.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.2662, allocations: 53.47 kB / 395.5 MB, free: 47.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.753e-05/0.2663, allocations: 39.78 kB / 395.6 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.504e-05/0.2663, allocations: 70.91 kB / 395.7 MB, free: 46.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002828/0.2666, allocations: 183.8 kB / 395.8 MB, free: 46.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2666, allocations: 0 / 395.8 MB, free: 46.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.2667, allocations: 1.125 kB / 395.8 MB, free: 46.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.665e-06/0.2667, allocations: 0 / 395.8 MB, free: 46.91 MB / 318.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.0007188/0.2674, allocations: 483.9 kB / 396.3 MB, free: 46.47 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.2674, allocations: 10.28 kB / 396.3 MB, free: 46.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.167e-05/0.2675, allocations: 17.97 kB / 396.3 MB, free: 46.46 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.2678, allocations: 237.6 kB / 396.6 MB, free: 46.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.855e-05/0.2678, allocations: 7.938 kB / 396.6 MB, free: 46.22 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.093e-05/0.2678, allocations: 10.31 kB / 396.6 MB, free: 46.22 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006644/0.2685, allocations: 341.1 kB / 396.9 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.2685, allocations: 0 / 396.9 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.2685, allocations: 6.781 kB / 396.9 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.2685, allocations: 1.25 kB / 396.9 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002152/0.2688, allocations: 87.41 kB / 397 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000356/0.2691, allocations: 350 kB / 397.3 MB, free: 45.63 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004001/0.2695, allocations: 261.7 kB / 397.6 MB, free: 45.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001913/0.2697, allocations: 108.6 kB / 397.7 MB, free: 45.37 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006458/0.2704, allocations: 0.5879 MB / 398.3 MB, free: 44.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.2704, allocations: 31.66 kB / 398.3 MB, free: 44.64 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 1.643e-06/0.2704, allocations: 0 / 398.3 MB, free: 44.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.000603/0.271, allocations: 239.7 kB / 398.6 MB, free: 44.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.973e-05/0.2711, allocations: 126.2 kB / 398.7 MB, free: 44.38 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001932/0.2713, allocations: 197.7 kB / 398.9 MB, free: 44.23 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.2714, allocations: 30.98 kB / 398.9 MB, free: 44.19 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.384e-05/0.2714, allocations: 109.3 kB / 399 MB, free: 44.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.06e-05/0.2715, allocations: 16.12 kB / 399 MB, free: 44.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/0.2715, allocations: 39.86 kB / 399.1 MB, free: 44.04 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.151e-05/0.2716, allocations: 330.2 kB / 399.4 MB, free: 43.71 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.205e-05/0.2717, allocations: 40.55 kB / 399.4 MB, free: 43.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.2718, allocations: 169.9 kB / 399.6 MB, free: 43.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.272, allocations: 203.4 kB / 399.8 MB, free: 43.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.272, allocations: 1.219 kB / 399.8 MB, free: 43.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003308/0.2724, allocations: 220.2 kB / 400 MB, free: 43.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.2724, allocations: 6.438 kB / 400 MB, free: 43.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.2724, allocations: 3.812 kB / 400 MB, free: 43.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.2725, allocations: 6.312 kB / 400 MB, free: 43.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000154/0.2726, allocations: 44.52 kB / 400.1 MB, free: 43.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.2726, allocations: 9.906 kB / 400.1 MB, free: 43.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.2728, allocations: 19.98 kB / 400.1 MB, free: 43.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.2728, allocations: 14 kB / 400.1 MB, free: 43.13 MB / 318.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.0001248/0.2729, allocations: 155 kB / 400.3 MB, free: 42.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000297/0.2732, allocations: 155.4 kB / 400.4 MB, free: 42.9 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000334/0.2736, allocations: 191.5 kB / 400.6 MB, free: 42.78 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.2736, allocations: 2.219 kB / 400.6 MB, free: 42.78 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2736, allocations: 0 / 400.6 MB, free: 42.78 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.2736, allocations: 1.219 kB / 400.6 MB, free: 42.78 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001883/0.2738, allocations: 229.8 kB / 400.8 MB, free: 42.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.2738, allocations: 4.969 kB / 400.8 MB, free: 42.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001378/0.274, allocations: 31.19 kB / 400.9 MB, free: 42.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.274, allocations: 1.219 kB / 400.9 MB, free: 42.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.274, allocations: 14.86 kB / 400.9 MB, free: 42.51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.274, allocations: 0 / 400.9 MB, free: 42.51 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.274, allocations: 1.156 kB / 400.9 MB, free: 42.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003946/0.2744, allocations: 280.7 kB / 401.2 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.634e-05/0.2745, allocations: 119.4 kB / 401.3 MB, free: 42.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.505e-05/0.2745, allocations: 14.8 kB / 401.3 MB, free: 42.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.2747, allocations: 9.688 kB / 401.3 MB, free: 42.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.822e-05/0.2747, allocations: 5.531 kB / 401.3 MB, free: 42.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.2747, allocations: 12.33 kB / 401.3 MB, free: 42.15 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001004/0.2748, allocations: 142.4 kB / 401.5 MB, free: 42.04 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2748, allocations: 0 / 401.5 MB, free: 42.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003188/0.2751, allocations: 33.88 kB / 401.5 MB, free: 42.04 MB / 318.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.0001521/0.2753, allocations: 113.6 kB / 401.6 MB, free: 41.94 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003274/0.2756, allocations: 154.8 kB / 401.8 MB, free: 41.87 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.2757, allocations: 1.281 kB / 401.8 MB, free: 41.87 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.675e-05/0.2757, allocations: 10.61 kB / 401.8 MB, free: 41.87 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005745/0.2763, allocations: 154.8 kB / 401.9 MB, free: 41.77 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006292/0.2769, allocations: 370.5 kB / 402.3 MB, free: 41.49 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.2772, allocations: 0.7378 MB / 403 MB, free: 40.76 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.553e-05/0.2773, allocations: 19.98 kB / 403 MB, free: 40.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.437e-05/0.2773, allocations: 15.47 kB / 403.1 MB, free: 40.75 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2773, allocations: 0 / 403.1 MB, free: 40.75 MB / 318.1 MB Notification: Performance of Templates: time 0.006101/0.2834, allocations: 2.313 MB / 405.4 MB, free: 39.6 MB / 318.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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches