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.0008804/0.0008804, allocations: 173.8 kB / 16.8 MB, free: 5.008 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.318/1.318, allocations: 205.4 MB / 223 MB, free: 8.926 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.0006738/0.0006738, allocations: 86.36 kB / 271.3 MB, free: 8.223 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.06974/0.06974, allocations: 12.59 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003435/0.0003437, allocations: 16 kB / 393.3 MB, free: 65.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07794/0.07831, allocations: 50.37 MB / 443.7 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.001545/0.07991, allocations: 1.255 MB / 445 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000313/0.08025, allocations: 131.6 kB / 445.1 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.044e-05/0.08035, allocations: 0 / 445.1 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.62e-05/0.0804, allocations: 7.938 kB / 445.1 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001541/0.08056, allocations: 7.922 kB / 445.1 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000243/0.08081, allocations: 35.98 kB / 445.1 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.828e-05/0.0809, allocations: 39.84 kB / 445.2 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.08101, allocations: 15.98 kB / 445.2 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.836e-05/0.08104, allocations: 7.938 kB / 445.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.684e-05/0.08109, allocations: 11.92 kB / 445.2 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.08111, allocations: 0 / 445.2 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.738e-06/0.08113, allocations: 3.938 kB / 445.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.025e-05/0.08118, allocations: 11.94 kB / 445.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.701e-05/0.08123, allocations: 49.5 kB / 445.3 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.001e-05/0.0813, allocations: 35.94 kB / 445.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.08132, allocations: 0 / 445.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.08132, allocations: 0 / 445.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.08133, allocations: 0 / 445.3 MB, free: 13.79 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.0003714/0.08171, allocations: 359.5 kB / 445.7 MB, free: 13.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.08175, allocations: 8.031 kB / 445.7 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.261e-05/0.08179, allocations: 8.844 kB / 445.7 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.08195, allocations: 185.6 kB / 445.9 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.08197, allocations: 8.375 kB / 445.9 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.08198, allocations: 384 / 445.9 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000249/0.08224, allocations: 125.5 kB / 446 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.08226, allocations: 192 / 446 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/0.08228, allocations: 3.938 kB / 446 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.08229, allocations: 4 kB / 446 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.407e-05/0.08237, allocations: 23.98 kB / 446 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002402/0.08262, allocations: 269.7 kB / 446.3 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.08279, allocations: 146.2 kB / 446.4 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.878e-05/0.08286, allocations: 29.77 kB / 446.4 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.08289, allocations: 3.938 kB / 446.5 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.352e-05/0.08291, allocations: 34.5 kB / 446.5 MB, free: 12.4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.393e-06/0.08292, allocations: 4 kB / 446.5 MB, free: 12.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002217/0.08315, allocations: 85.59 kB / 446.6 MB, free: 12.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.08319, allocations: 81.09 kB / 446.7 MB, free: 12.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.037e-05/0.08328, allocations: 138 kB / 446.8 MB, free: 12.06 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.253e-06/0.08329, allocations: 25.7 kB / 446.8 MB, free: 12.03 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.713e-05/0.08333, allocations: 92.27 kB / 446.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.316e-05/0.08335, allocations: 3.906 kB / 446.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-06/0.08335, allocations: 0 / 446.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.655e-05/0.08341, allocations: 322.8 kB / 447.2 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.591e-05/0.08345, allocations: 4 kB / 447.2 MB, free: 11.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.868e-05/0.08349, allocations: 43.42 kB / 447.3 MB, free: 11.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.2e-05/0.08357, allocations: 47.36 kB / 447.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.08358, allocations: 0 / 447.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001102/0.0837, allocations: 73.5 kB / 447.4 MB, free: 11.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.08372, allocations: 11.98 kB / 447.4 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.08373, allocations: 0 / 447.4 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.08375, allocations: 0 / 447.4 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.257e-05/0.08381, allocations: 8 kB / 447.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.08382, allocations: 4 kB / 447.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.434e-05/0.08386, allocations: 8.031 kB / 447.4 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-06/0.08387, allocations: 4 kB / 447.4 MB, free: 11.38 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.485e-05/0.08394, allocations: 122.6 kB / 447.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.77e-05/0.08401, allocations: 49.62 kB / 447.6 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.866e-05/0.08404, allocations: 12.25 kB / 447.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.08405, allocations: 0 / 447.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.08406, allocations: 0 / 447.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.08407, allocations: 3.938 kB / 447.6 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.08419, allocations: 177.5 kB / 447.8 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.0842, allocations: 0 / 447.8 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.467e-05/0.08425, allocations: 15.98 kB / 447.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.08426, allocations: 0 / 447.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.08427, allocations: 0 / 447.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.08428, allocations: 4 kB / 447.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.08429, allocations: 0 / 447.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001288/0.08442, allocations: 176.2 kB / 448 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.725e-05/0.08447, allocations: 93 kB / 448.1 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.08449, allocations: 4 kB / 448.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.263e-05/0.08455, allocations: 0 / 448.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.765e-05/0.08459, allocations: 4 kB / 448.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.0846, allocations: 0 / 448.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.503e-05/0.08465, allocations: 107.2 kB / 448.2 MB, free: 10.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.08465, allocations: 0 / 448.2 MB, free: 10.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002144/0.08487, allocations: 8 kB / 448.2 MB, free: 10.51 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.273e-05/0.08495, allocations: 99.19 kB / 448.3 MB, free: 10.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001155/0.08507, allocations: 35.92 kB / 448.3 MB, free: 10.37 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.08508, allocations: 0 / 448.3 MB, free: 10.37 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.155e-05/0.08512, allocations: 7.984 kB / 448.3 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003218/0.08545, allocations: 28.28 kB / 448.3 MB, free: 10.33 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002656/0.08573, allocations: 203.1 kB / 448.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.08585, allocations: 0.6892 MB / 449.2 MB, free: 9.379 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.148e-05/0.08588, allocations: 11.44 kB / 449.2 MB, free: 9.367 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.08589, allocations: 4 kB / 449.3 MB, free: 9.363 MB / 298.7 MB Notification: Performance of Templates: time 0.001672/0.08756, allocations: 0.6801 MB / 449.9 MB, free: 8.684 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