Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009166/0.0009167, allocations: 184.4 kB / 16.45 MB, free: 5.656 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.292/1.292, allocations: 205.4 MB / 222.6 MB, free: 9.105 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.0007593/0.0007594, allocations: 100.8 kB / 270.9 MB, free: 8.352 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.07048/0.07048, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003892/0.0003893, allocations: 16 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07303/0.07343, allocations: 50.38 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.001259/0.07473, allocations: 1.243 MB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002694/0.07502, allocations: 147.6 kB / 444.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.003e-05/0.0751, allocations: 4 kB / 444.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.722e-05/0.07513, allocations: 3.938 kB / 444.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001098/0.07525, allocations: 3.984 kB / 444.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002067/0.07546, allocations: 35.91 kB / 444.5 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.127e-05/0.07554, allocations: 27.92 kB / 444.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.253e-05/0.07563, allocations: 7.984 kB / 444.5 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.11e-05/0.07567, allocations: 19.92 kB / 444.5 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.772e-05/0.07571, allocations: 7.938 kB / 444.5 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.43e-05/0.07573, allocations: 4 kB / 444.5 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.027e-05/0.07575, allocations: 7.875 kB / 444.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.032e-05/0.07578, allocations: 11.98 kB / 444.6 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.378e-05/0.07581, allocations: 33.64 kB / 444.6 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.582e-05/0.07587, allocations: 31.88 kB / 444.6 MB, free: 14.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.07588, allocations: 0 / 444.6 MB, free: 14.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.07589, allocations: 0 / 444.6 MB, free: 14.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.0759, allocations: 0 / 444.6 MB, free: 14.19 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003308/0.07624, allocations: 367.3 kB / 445 MB, free: 13.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.07628, allocations: 8.031 kB / 445 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.163e-05/0.07631, allocations: 7.906 kB / 445 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.07646, allocations: 180.4 kB / 445.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.596e-06/0.07648, allocations: 7.922 kB / 445.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/0.07649, allocations: 11.95 kB / 445.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00023/0.07673, allocations: 124.9 kB / 445.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.07675, allocations: 0 / 445.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-06/0.07676, allocations: 0 / 445.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.07677, allocations: 0 / 445.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.871e-05/0.07685, allocations: 19.98 kB / 445.3 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002362/0.07709, allocations: 265.7 kB / 445.6 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000154/0.07725, allocations: 138.3 kB / 445.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.588e-05/0.07732, allocations: 33.72 kB / 445.8 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.463e-05/0.07734, allocations: 3.984 kB / 445.8 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.657e-05/0.07736, allocations: 34.56 kB / 445.8 MB, free: 12.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.07737, allocations: 0 / 445.8 MB, free: 12.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002087/0.07758, allocations: 85.61 kB / 445.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/0.07762, allocations: 81.11 kB / 446 MB, free: 12.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.02e-05/0.0777, allocations: 130.5 kB / 446.1 MB, free: 12.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.682e-06/0.07771, allocations: 29.7 kB / 446.1 MB, free: 12.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.34e-05/0.07774, allocations: 88.08 kB / 446.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.035e-05/0.07775, allocations: 7.984 kB / 446.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.274e-06/0.07776, allocations: 0 / 446.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.994e-05/0.07781, allocations: 322.8 kB / 446.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.56e-05/0.07785, allocations: 12.02 kB / 446.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.527e-05/0.07789, allocations: 35.44 kB / 446.6 MB, free: 11.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.77e-05/0.07793, allocations: 23.92 kB / 446.6 MB, free: 11.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.07794, allocations: 0 / 446.6 MB, free: 11.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001021/0.07805, allocations: 69.47 kB / 446.7 MB, free: 11.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/0.07806, allocations: 8 kB / 446.7 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.07807, allocations: 0 / 446.7 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.07809, allocations: 3.984 kB / 446.7 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.612e-05/0.07814, allocations: 8.125 kB / 446.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.037e-06/0.07815, allocations: 8 kB / 446.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.108e-05/0.07819, allocations: 4 kB / 446.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.669e-06/0.0782, allocations: 4 kB / 446.7 MB, free: 11.83 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 4.874e-05/0.07825, allocations: 134.4 kB / 446.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.105e-05/0.0783, allocations: 41.61 kB / 446.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.282e-05/0.07833, allocations: 16.56 kB / 446.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.07834, allocations: 0 / 446.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.07835, allocations: 0 / 446.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.07836, allocations: 11.98 kB / 446.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.07846, allocations: 169.6 kB / 447.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.07847, allocations: 0 / 447.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.179e-05/0.07852, allocations: 8 kB / 447.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.07853, allocations: 0 / 447.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.07854, allocations: 7.984 kB / 447.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.07854, allocations: 0 / 447.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.07855, allocations: 3.938 kB / 447.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001138/0.07867, allocations: 164.3 kB / 447.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.089e-05/0.07871, allocations: 97.05 kB / 447.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.07872, allocations: 3.984 kB / 447.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.543e-05/0.07878, allocations: 4 kB / 447.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.846e-05/0.07881, allocations: 0 / 447.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/0.07882, allocations: 0 / 447.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.964e-05/0.07886, allocations: 111.3 kB / 447.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.07886, allocations: 3.938 kB / 447.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001986/0.07907, allocations: 7.906 kB / 447.5 MB, free: 10.95 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 6.844e-05/0.07914, allocations: 99.17 kB / 447.6 MB, free: 10.85 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001206/0.07927, allocations: 35.92 kB / 447.6 MB, free: 10.81 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.07928, allocations: 4.25 kB / 447.6 MB, free: 10.81 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.036e-05/0.07931, allocations: 8 kB / 447.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.07963, allocations: 27.95 kB / 447.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002427/0.07988, allocations: 187.4 kB / 447.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001106/0.08, allocations: 0.6927 MB / 448.5 MB, free: 9.828 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.857e-05/0.08003, allocations: 7.438 kB / 448.5 MB, free: 9.82 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.08004, allocations: 4 kB / 448.5 MB, free: 9.816 MB / 298.7 MB Notification: Performance of Templates: time 0.001454/0.08149, allocations: 0.6781 MB / 449.2 MB, free: 9.141 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches