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.001812/0.001812, allocations: 105.9 kB / 16.31 MB, free: 5.879 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.002571/0.002571, allocations: 191.2 kB / 17.24 MB, free: 5.539 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.723/1.723, allocations: 205.1 MB / 223.1 MB, free: 12.25 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.08747/0.08747, allocations: 12.59 MB / 283.1 MB, free: 15.47 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.002459/0.002459, allocations: 88.72 kB / 343.5 MB, free: 2.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.3541, allocations: 49.37 MB / 392.9 MB, free: 49.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003843/0.358, allocations: 1.847 MB / 394.7 MB, free: 47.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.3596, allocations: 0.7282 MB / 395.5 MB, free: 47.39 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.3597, allocations: 6.469 kB / 395.5 MB, free: 47.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001772/0.3599, allocations: 19.12 kB / 395.5 MB, free: 47.38 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001567/0.3601, allocations: 26.14 kB / 395.5 MB, free: 47.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006458/0.3608, allocations: 156.8 kB / 395.7 MB, free: 47.28 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002546/0.361, allocations: 153.1 kB / 395.8 MB, free: 47.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001922/0.3612, allocations: 57.39 kB / 395.9 MB, free: 47.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.3613, allocations: 57.11 kB / 395.9 MB, free: 47.15 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001441/0.3615, allocations: 69 kB / 396 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.191e-05/0.3615, allocations: 10.59 kB / 396 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.3617, allocations: 51.23 kB / 396 MB, free: 47.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.3618, allocations: 36.64 kB / 396.1 MB, free: 47.08 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.088e-05/0.3619, allocations: 70.58 kB / 396.2 MB, free: 47.03 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003049/0.3622, allocations: 188.7 kB / 396.3 MB, free: 46.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3622, allocations: 1.188 kB / 396.3 MB, free: 46.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3622, allocations: 0 / 396.3 MB, free: 46.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.3622, allocations: 0 / 396.3 MB, free: 46.95 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.0006915/0.3629, allocations: 486.8 kB / 396.8 MB, free: 46.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.3629, allocations: 9.938 kB / 396.8 MB, free: 46.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.907e-05/0.363, allocations: 17.06 kB / 396.8 MB, free: 46.47 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002667/0.3633, allocations: 235.9 kB / 397.1 MB, free: 46.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.3633, allocations: 9.312 kB / 397.1 MB, free: 46.22 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/0.3633, allocations: 13.44 kB / 397.1 MB, free: 46.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006623/0.364, allocations: 329.9 kB / 397.4 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.364, allocations: 3.984 kB / 397.4 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.3641, allocations: 5.062 kB / 397.4 MB, free: 45.99 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.3641, allocations: 6.312 kB / 397.4 MB, free: 45.99 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002731/0.3644, allocations: 77.64 kB / 397.5 MB, free: 45.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000479/0.3648, allocations: 348.8 kB / 397.8 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005713/0.3654, allocations: 274.4 kB / 398.1 MB, free: 45.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.3656, allocations: 100.3 kB / 398.2 MB, free: 45.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006257/0.3663, allocations: 0.5845 MB / 398.8 MB, free: 44.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.3663, allocations: 35.66 kB / 398.8 MB, free: 44.6 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 1.413e-06/0.3663, allocations: 0 / 398.8 MB, free: 44.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.000613/0.3669, allocations: 234.6 kB / 399.1 MB, free: 44.48 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.17e-05/0.367, allocations: 125.8 kB / 399.2 MB, free: 44.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.3672, allocations: 194 kB / 399.4 MB, free: 44.19 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.3672, allocations: 30.89 kB / 399.4 MB, free: 44.15 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.298e-05/0.3673, allocations: 101 kB / 399.5 MB, free: 44.05 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.288e-05/0.3673, allocations: 24.08 kB / 399.5 MB, free: 44.04 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.444e-05/0.3674, allocations: 39.89 kB / 399.6 MB, free: 44 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.695e-05/0.3675, allocations: 326.2 kB / 399.9 MB, free: 43.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.652e-05/0.3675, allocations: 41.47 kB / 399.9 MB, free: 43.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.3677, allocations: 168 kB / 400.1 MB, free: 43.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/0.368, allocations: 203.3 kB / 400.3 MB, free: 43.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.368, allocations: 2.125 kB / 400.3 MB, free: 43.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004021/0.3684, allocations: 215.4 kB / 400.5 MB, free: 43.13 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.3684, allocations: 12.09 kB / 400.5 MB, free: 43.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.3684, allocations: 4.594 kB / 400.5 MB, free: 43.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.047e-05/0.3685, allocations: 12.8 kB / 400.5 MB, free: 43.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.3687, allocations: 44.73 kB / 400.6 MB, free: 43.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.806e-05/0.3687, allocations: 6.188 kB / 400.6 MB, free: 43.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.3688, allocations: 11.62 kB / 400.6 MB, free: 43.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.518e-05/0.3688, allocations: 18.36 kB / 400.6 MB, free: 43.09 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.0001528/0.369, allocations: 150.3 kB / 400.8 MB, free: 42.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003461/0.3693, allocations: 159.4 kB / 400.9 MB, free: 42.86 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004436/0.3698, allocations: 196 kB / 401.1 MB, free: 42.74 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.3698, allocations: 2.156 kB / 401.1 MB, free: 42.74 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3698, allocations: 0 / 401.1 MB, free: 42.74 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.3698, allocations: 1.719 kB / 401.1 MB, free: 42.74 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002443/0.3701, allocations: 232.9 kB / 401.3 MB, free: 42.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.3701, allocations: 9.375 kB / 401.3 MB, free: 42.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001461/0.3703, allocations: 31.64 kB / 401.4 MB, free: 42.47 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.428e-06/0.3703, allocations: 9.047 kB / 401.4 MB, free: 42.46 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.3703, allocations: 6.531 kB / 401.4 MB, free: 42.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.3703, allocations: 0 / 401.4 MB, free: 42.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3703, allocations: 1.312 kB / 401.4 MB, free: 42.46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004622/0.3708, allocations: 274.8 kB / 401.7 MB, free: 42.26 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.3709, allocations: 123.5 kB / 401.8 MB, free: 42.13 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.462e-05/0.371, allocations: 7.375 kB / 401.8 MB, free: 42.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.3711, allocations: 13.73 kB / 401.8 MB, free: 42.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.77e-05/0.3712, allocations: 1.125 kB / 401.8 MB, free: 42.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.601e-05/0.3712, allocations: 4.625 kB / 401.8 MB, free: 42.12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001552/0.3714, allocations: 150.6 kB / 401.9 MB, free: 42 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3714, allocations: 0 / 401.9 MB, free: 42 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003752/0.3717, allocations: 29.72 kB / 402 MB, free: 42 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.0002513/0.372, allocations: 115.5 kB / 402.1 MB, free: 41.9 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000465/0.3725, allocations: 152.8 kB / 402.2 MB, free: 41.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3725, allocations: 1.188 kB / 402.2 MB, free: 41.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.511e-05/0.3725, allocations: 13.92 kB / 402.3 MB, free: 41.83 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000709/0.3733, allocations: 152.7 kB / 402.4 MB, free: 41.74 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007386/0.374, allocations: 324.2 kB / 402.7 MB, free: 41.5 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002533/0.3743, allocations: 0.7343 MB / 403.5 MB, free: 40.78 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.312e-05/0.3744, allocations: 18.3 kB / 403.5 MB, free: 40.77 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.51e-05/0.3744, allocations: 20.94 kB / 403.5 MB, free: 40.76 MB / 318.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3744, allocations: 0 / 403.5 MB, free: 40.76 MB / 318.1 MB Notification: Performance of Templates: time 0.00648/0.3809, allocations: 2.336 MB / 405.8 MB, free: 39.61 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches