Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001615/0.001614, 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 2.931/2.931, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.001214/0.001215, allocations: 89.47 kB / 272 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.1748/0.1748, allocations: 12.19 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006463/0.0006464, allocations: 12 kB / 392.7 MB, free: 67.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.1635, allocations: 50.3 MB / 443 MB, free: 16.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4995/0.663, allocations: 78.47 MB / 0.5093 GB, free: 13.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002919/0.6634, allocations: 76.53 kB / 0.5093 GB, free: 13.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005774/0.6692, allocations: 1.984 MB / 0.5113 GB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.095e-06/0.6692, allocations: 4 kB / 0.5113 GB, free: 12.45 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.6693, allocations: 0 / 0.5113 GB, free: 12.45 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.0004495/0.6697, allocations: 362.6 kB / 0.5116 GB, free: 12.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/0.6698, allocations: 11.47 kB / 0.5116 GB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.13e-05/0.6698, allocations: 8.812 kB / 0.5117 GB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002054/0.6701, allocations: 196.2 kB / 0.5118 GB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.6701, allocations: 7.25 kB / 0.5118 GB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.6701, allocations: 384 / 0.5118 GB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003251/0.6704, allocations: 138 kB / 0.512 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.6705, allocations: 192 / 0.512 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.6705, allocations: 3.938 kB / 0.512 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.6705, allocations: 3.844 kB / 0.512 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.255e-05/0.6706, allocations: 28.02 kB / 0.512 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003623/0.6709, allocations: 262.9 kB / 0.5123 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001849/0.6711, allocations: 149.5 kB / 0.5124 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.055e-05/0.6712, allocations: 28.19 kB / 0.5124 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.6712, allocations: 7.828 kB / 0.5124 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.6713, allocations: 30.56 kB / 0.5125 GB, free: 11.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.455e-06/0.6713, allocations: 0 / 0.5125 GB, free: 11.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002443/0.6715, allocations: 90.8 kB / 0.5126 GB, free: 11.19 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/0.6716, allocations: 81.05 kB / 0.5126 GB, free: 11.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.6717, allocations: 140.9 kB / 0.5128 GB, free: 10.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.6717, allocations: 25.7 kB / 0.5128 GB, free: 10.95 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.473e-05/0.6718, allocations: 86.7 kB / 0.5129 GB, free: 10.87 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.422e-05/0.6718, allocations: 11.73 kB / 0.5129 GB, free: 10.86 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-06/0.6718, allocations: 0 / 0.5129 GB, free: 10.86 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.533e-05/0.6719, allocations: 321.1 kB / 0.5132 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.044e-05/0.6719, allocations: 11.56 kB / 0.5132 GB, free: 10.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.224e-05/0.6719, allocations: 34.95 kB / 0.5132 GB, free: 10.51 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.182e-05/0.672, allocations: 55.52 kB / 0.5133 GB, free: 10.46 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.6721, allocations: 3.938 kB / 0.5133 GB, free: 10.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001245/0.6722, allocations: 75.23 kB / 0.5134 GB, free: 10.41 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.6722, allocations: 3.875 kB / 0.5134 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.6722, allocations: 0 / 0.5134 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.6723, allocations: 3.906 kB / 0.5134 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.081e-05/0.6723, allocations: 16 kB / 0.5134 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.6723, allocations: 0 / 0.5134 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.205e-05/0.6724, allocations: 7.797 kB / 0.5134 GB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.6724, allocations: 8.766 kB / 0.5134 GB, free: 10.4 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 7.609e-05/0.6725, allocations: 124.5 kB / 0.5135 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.911e-05/0.6726, allocations: 51.06 kB / 0.5136 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.678e-05/0.6726, allocations: 15.78 kB / 0.5136 GB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.6726, allocations: 3.938 kB / 0.5136 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.6726, allocations: 0 / 0.5136 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.6726, allocations: 3.906 kB / 0.5136 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000154/0.6728, allocations: 175.7 kB / 0.5138 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.6728, allocations: 0 / 0.5138 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.322e-05/0.6729, allocations: 15.66 kB / 0.5138 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.6729, allocations: 3.812 kB / 0.5138 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.6729, allocations: 0 / 0.5138 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.6729, allocations: 0 / 0.5138 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.6729, allocations: 0 / 0.5138 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001555/0.6731, allocations: 179.4 kB / 0.514 GB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.905e-05/0.6731, allocations: 91.12 kB / 0.514 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.6732, allocations: 7.359 kB / 0.514 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.51e-05/0.6732, allocations: 3.812 kB / 0.514 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.693e-05/0.6733, allocations: 0 / 0.514 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.6733, allocations: 3.844 kB / 0.5141 GB, free: 9.738 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.665e-05/0.6733, allocations: 110.3 kB / 0.5142 GB, free: 9.656 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6734, allocations: 3.938 kB / 0.5142 GB, free: 9.652 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002246/0.6736, allocations: 3.875 kB / 0.5142 GB, free: 9.652 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 0.0001038/0.6737, allocations: 94.91 kB / 0.5143 GB, free: 9.562 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002243/0.6739, allocations: 33.55 kB / 0.5143 GB, free: 9.559 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.6739, allocations: 3.938 kB / 0.5143 GB, free: 9.555 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.82e-05/0.674, allocations: 11.05 kB / 0.5143 GB, free: 9.551 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003904/0.6744, allocations: 29.66 kB / 0.5143 GB, free: 9.539 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004033/0.6748, allocations: 223.5 kB / 0.5145 GB, free: 9.332 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001911/0.675, allocations: 0.6922 MB / 0.5152 GB, free: 8.629 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.092e-05/0.675, allocations: 7.438 kB / 0.5152 GB, free: 8.621 MB / 330.7 MB Notification: Performance of SimCode: time 2.044e-06/0.675, allocations: 4 kB / 0.5152 GB, free: 8.617 MB / 330.7 MB Notification: Performance of Templates: time 0.002218/0.6773, allocations: 0.7399 MB / 0.516 GB, free: 8.246 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches