Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001296/0.001296, allocations: 174.4 kB / 16.76 MB, free: 5.047 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.404/1.404, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007045/0.0007045, allocations: 89.42 kB / 271.3 MB, free: 8.246 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.06378/0.06378, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004208/0.0004208, allocations: 16 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07123/0.07166, allocations: 50.37 MB / 443 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample): time 0.001277/0.07297, allocations: 1.266 MB / 444.2 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005636/0.07356, allocations: 0.4883 MB / 444.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.962e-05/0.07364, allocations: 0 / 444.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.888e-05/0.07368, allocations: 3.938 kB / 444.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.07379, allocations: 15.86 kB / 444.7 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002244/0.07403, allocations: 43.89 kB / 444.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.99e-05/0.0741, allocations: 43.84 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.789e-05/0.0742, allocations: 20.17 kB / 444.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.614e-05/0.07426, allocations: 23.86 kB / 444.9 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.533e-05/0.07433, allocations: 11.92 kB / 444.9 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.178e-05/0.07436, allocations: 4 kB / 444.9 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.445e-05/0.07438, allocations: 3.938 kB / 444.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.991e-05/0.07442, allocations: 15.92 kB / 444.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.85e-05/0.07446, allocations: 41.58 kB / 444.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.527e-05/0.07452, allocations: 43.86 kB / 445 MB, free: 14.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.07453, allocations: 4 kB / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.07453, allocations: 0 / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.07454, allocations: 0 / 445 MB, free: 14.07 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.00031/0.07486, allocations: 367.5 kB / 445.3 MB, free: 13.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.943e-05/0.07489, allocations: 8.031 kB / 445.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.676e-05/0.07493, allocations: 8.844 kB / 445.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.07505, allocations: 196.1 kB / 445.5 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-06/0.07507, allocations: 8.375 kB / 445.6 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.166e-05/0.07509, allocations: 4.375 kB / 445.6 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002101/0.0753, allocations: 118 kB / 445.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.07532, allocations: 0 / 445.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.375e-06/0.07533, allocations: 0 / 445.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.07534, allocations: 4 kB / 445.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.434e-05/0.07542, allocations: 31.92 kB / 445.7 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002154/0.07565, allocations: 286.4 kB / 446 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.134e-05/0.07574, allocations: 67.86 kB / 446.1 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.436e-05/0.0758, allocations: 38.56 kB / 446.1 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.963e-05/0.07583, allocations: 4 kB / 446.1 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.387e-05/0.07585, allocations: 34.56 kB / 446.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.07585, allocations: 0 / 446.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002232/0.07608, allocations: 89.5 kB / 446.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.07612, allocations: 119.1 kB / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.086e-05/0.07622, allocations: 137.6 kB / 446.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.087e-06/0.07624, allocations: 25.7 kB / 446.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.568e-05/0.07628, allocations: 96.12 kB / 446.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.19e-05/0.0763, allocations: 3.906 kB / 446.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.036e-06/0.0763, allocations: 0 / 446.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.671e-05/0.07635, allocations: 322.8 kB / 446.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.88e-05/0.07639, allocations: 7.984 kB / 446.9 MB, free: 11.87 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.903e-05/0.07644, allocations: 43.42 kB / 447 MB, free: 11.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.463e-05/0.07652, allocations: 51.36 kB / 447 MB, free: 11.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.07653, allocations: 3.938 kB / 447 MB, free: 11.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001348/0.07667, allocations: 73.53 kB / 447.1 MB, free: 11.67 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.07669, allocations: 7.984 kB / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.0767, allocations: 4 kB / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.07672, allocations: 128 / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.929e-05/0.07679, allocations: 15.94 kB / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.0768, allocations: 0 / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.008e-05/0.07685, allocations: 7.984 kB / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.07686, allocations: 4 kB / 447.1 MB, free: 11.63 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 5.003e-05/0.07692, allocations: 122.4 kB / 447.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.92e-05/0.07698, allocations: 53.53 kB / 447.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.533e-05/0.07701, allocations: 15.83 kB / 447.3 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.07702, allocations: 8.062 kB / 447.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.07703, allocations: 0 / 447.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.07704, allocations: 0 / 447.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.07716, allocations: 177.6 kB / 447.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.07716, allocations: 0 / 447.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.514e-05/0.07722, allocations: 8 kB / 447.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.07723, allocations: 0 / 447.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.07725, allocations: 7.938 kB / 447.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.07725, allocations: 3.984 kB / 447.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.07726, allocations: 0 / 447.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001304/0.07739, allocations: 189.1 kB / 447.7 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.612e-05/0.07744, allocations: 101 kB / 447.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.07746, allocations: 4 kB / 447.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.977e-05/0.07753, allocations: 12 kB / 447.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.214e-05/0.07757, allocations: 0 / 447.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.219e-06/0.07758, allocations: 4 kB / 447.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.93e-05/0.07764, allocations: 107.2 kB / 447.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07764, allocations: 0 / 447.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002094/0.07786, allocations: 4 kB / 447.9 MB, free: 10.73 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 5.714e-05/0.07792, allocations: 91.25 kB / 448 MB, free: 10.63 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001164/0.07804, allocations: 47.91 kB / 448.1 MB, free: 10.58 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.07806, allocations: 0 / 448.1 MB, free: 10.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.335e-05/0.07809, allocations: 8 kB / 448.1 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.07842, allocations: 35.83 kB / 448.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002634/0.0787, allocations: 224.8 kB / 448.3 MB, free: 10.28 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.877e-05/0.07881, allocations: 0.6887 MB / 449 MB, free: 9.566 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.608e-05/0.07884, allocations: 19.36 kB / 449 MB, free: 9.547 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.07885, allocations: 0 / 449 MB, free: 9.547 MB / 298.7 MB Notification: Performance of Templates: time 0.001564/0.08042, allocations: 0.8043 MB / 449.8 MB, free: 8.746 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches