Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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/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/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_cpp_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_cpp_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.001833/0.001833, allocations: 180.5 kB / 17.46 MB, free: 4.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.051/3.051, allocations: 205.4 MB / 223.6 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.001643/0.001643, allocations: 82.44 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1707/0.1707, allocations: 12.19 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007755/0.0007757, allocations: 23.98 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1401, allocations: 50.29 MB / 443 MB, free: 16.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4993/0.6395, allocations: 77.86 MB / 0.5087 GB, free: 12.99 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/0.6399, allocations: 72.66 kB / 0.5087 GB, free: 12.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005473/0.6454, allocations: 1.687 MB / 0.5104 GB, free: 12.6 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.6454, allocations: 0 / 0.5104 GB, free: 12.6 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.6454, allocations: 3.781 kB / 0.5104 GB, free: 12.6 MB / 330.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.0003583/0.6458, allocations: 362.6 kB / 0.5107 GB, free: 12.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.6459, allocations: 11.62 kB / 0.5107 GB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.576e-05/0.6459, allocations: 12 kB / 0.5108 GB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001912/0.6461, allocations: 192.3 kB / 0.5109 GB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.6461, allocations: 8.094 kB / 0.5109 GB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.6461, allocations: 384 / 0.5109 GB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003436/0.6465, allocations: 130.1 kB / 0.5111 GB, free: 11.9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.6465, allocations: 4.188 kB / 0.5111 GB, free: 11.9 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.6465, allocations: 3.938 kB / 0.5111 GB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.6466, allocations: 7.75 kB / 0.5111 GB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.379e-05/0.6466, allocations: 19.58 kB / 0.5111 GB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003434/0.647, allocations: 267.5 kB / 0.5114 GB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002421/0.6472, allocations: 140.9 kB / 0.5115 GB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.322e-05/0.6473, allocations: 31.67 kB / 0.5115 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.906e-05/0.6474, allocations: 0 / 0.5115 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.6474, allocations: 38.5 kB / 0.5116 GB, free: 11.38 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 8.11e-07/0.6474, allocations: 3.875 kB / 0.5116 GB, free: 11.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003008/0.6477, allocations: 75.92 kB / 0.5116 GB, free: 11.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.6478, allocations: 84.48 kB / 0.5117 GB, free: 11.24 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001405/0.6479, allocations: 143.9 kB / 0.5119 GB, free: 11.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.099e-05/0.648, allocations: 25.7 kB / 0.5119 GB, free: 11.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.153e-05/0.648, allocations: 82.95 kB / 0.512 GB, free: 11.01 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.122e-05/0.648, allocations: 11.34 kB / 0.512 GB, free: 11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.509e-06/0.6481, allocations: 0 / 0.512 GB, free: 11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.361e-05/0.6481, allocations: 314.8 kB / 0.5123 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.633e-05/0.6482, allocations: 11 kB / 0.5123 GB, free: 10.69 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.785e-05/0.6483, allocations: 39.11 kB / 0.5123 GB, free: 10.65 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.774e-05/0.6484, allocations: 50.33 kB / 0.5124 GB, free: 10.61 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.6484, allocations: 3.875 kB / 0.5124 GB, free: 10.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001315/0.6486, allocations: 64.69 kB / 0.5124 GB, free: 10.56 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.6486, allocations: 7.719 kB / 0.5124 GB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.6486, allocations: 0 / 0.5124 GB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.6486, allocations: 96 / 0.5124 GB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.579e-05/0.6487, allocations: 19.75 kB / 0.5125 GB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.6487, allocations: 7.969 kB / 0.5125 GB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.44e-05/0.6488, allocations: 3.875 kB / 0.5125 GB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.6488, allocations: 3.938 kB / 0.5125 GB, free: 10.54 MB / 330.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 6.798e-05/0.6488, allocations: 126.1 kB / 0.5126 GB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.601e-05/0.6489, allocations: 47.67 kB / 0.5126 GB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.399e-05/0.649, allocations: 15.23 kB / 0.5127 GB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.649, allocations: 3.938 kB / 0.5127 GB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.649, allocations: 0 / 0.5127 GB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.649, allocations: 7.781 kB / 0.5127 GB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001352/0.6491, allocations: 168.5 kB / 0.5128 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.6491, allocations: 3.938 kB / 0.5128 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.408e-05/0.6492, allocations: 7.688 kB / 0.5128 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.6492, allocations: 3.875 kB / 0.5128 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.6492, allocations: 0 / 0.5128 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.6492, allocations: 0 / 0.5128 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.6492, allocations: 3.984 kB / 0.5128 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001372/0.6494, allocations: 174.7 kB / 0.513 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.158e-05/0.6494, allocations: 88.84 kB / 0.5131 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.6494, allocations: 0 / 0.5131 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.767e-05/0.6495, allocations: 7.859 kB / 0.5131 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.868e-05/0.6495, allocations: 3.688 kB / 0.5131 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.327e-06/0.6496, allocations: 7.719 kB / 0.5131 GB, free: 9.895 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.233e-05/0.6496, allocations: 110.3 kB / 0.5132 GB, free: 9.809 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6496, allocations: 0 / 0.5132 GB, free: 9.809 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002137/0.6498, allocations: 3.75 kB / 0.5132 GB, free: 9.809 MB / 330.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 8.951e-05/0.6499, allocations: 98.64 kB / 0.5133 GB, free: 9.711 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001855/0.6501, allocations: 30.73 kB / 0.5133 GB, free: 9.703 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.6501, allocations: 4.125 kB / 0.5133 GB, free: 9.703 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.493e-05/0.6502, allocations: 10.72 kB / 0.5134 GB, free: 9.699 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003797/0.6506, allocations: 26.17 kB / 0.5134 GB, free: 9.688 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003575/0.651, allocations: 193.1 kB / 0.5136 GB, free: 9.504 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001902/0.6512, allocations: 0.6959 MB / 0.5142 GB, free: 8.797 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.685e-05/0.6512, allocations: 7.438 kB / 0.5143 GB, free: 8.793 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6512, allocations: 0 / 0.5143 GB, free: 8.793 MB / 330.7 MB Notification: Performance of Templates: time 0.002017/0.6532, allocations: 0.6783 MB / 0.5149 GB, free: 8.457 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches