Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001546/0.001546, allocations: 197.4 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 226.5 MB / 244.7 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008769/0.0008768, allocations: 102.8 kB / 296.8 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002723/0.0002724, allocations: 8 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.262, allocations: 51.3 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.001694/0.2637, allocations: 1.265 MB / 409.3 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003572/0.2641, allocations: 123.7 kB / 409.4 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.2642, allocations: 4 kB / 409.4 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.096e-05/0.2643, allocations: 3.938 kB / 409.4 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001686/0.2644, allocations: 7.969 kB / 409.5 MB, free: 26.26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002693/0.2647, allocations: 31.92 kB / 409.5 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.707e-05/0.2648, allocations: 33.23 kB / 409.5 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.2649, allocations: 19.05 kB / 409.5 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.854e-05/0.265, allocations: 7.938 kB / 409.5 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.362e-05/0.265, allocations: 11.92 kB / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.24e-05/0.2651, allocations: 0 / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.272e-05/0.2651, allocations: 0 / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.426e-05/0.2652, allocations: 11.98 kB / 409.6 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.942e-05/0.2652, allocations: 45.52 kB / 409.6 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.324e-05/0.2653, allocations: 35.88 kB / 409.6 MB, free: 26.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.2653, allocations: 4.562 kB / 409.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2653, allocations: 0 / 409.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.2653, allocations: 1.156 kB / 409.7 MB, free: 26.06 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.0005321/0.2659, allocations: 354.1 kB / 410 MB, free: 25.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.2659, allocations: 8.031 kB / 410 MB, free: 25.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.747e-05/0.266, allocations: 8.844 kB / 410 MB, free: 25.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001899/0.2662, allocations: 196 kB / 410.2 MB, free: 25.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.2662, allocations: 9.156 kB / 410.2 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.2662, allocations: 4.375 kB / 410.2 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002958/0.2665, allocations: 116.1 kB / 410.3 MB, free: 25.28 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.2665, allocations: 0.9062 kB / 410.3 MB, free: 25.28 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.2666, allocations: 3.938 kB / 410.3 MB, free: 25.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.2666, allocations: 7.438 kB / 410.3 MB, free: 25.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.912e-05/0.2666, allocations: 19.98 kB / 410.4 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002761/0.2669, allocations: 261.8 kB / 410.6 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.2671, allocations: 148.1 kB / 410.8 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.467e-05/0.2672, allocations: 33.7 kB / 410.8 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.2672, allocations: 0 / 410.8 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/0.2672, allocations: 34.55 kB / 410.8 MB, free: 24.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.2672, allocations: 0 / 410.8 MB, free: 24.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002128/0.2674, allocations: 85.52 kB / 410.9 MB, free: 24.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/0.2675, allocations: 81.11 kB / 411 MB, free: 24.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.1e-05/0.2676, allocations: 134 kB / 411.1 MB, free: 24.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.276e-06/0.2676, allocations: 33.62 kB / 411.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.198e-05/0.2676, allocations: 92.12 kB / 411.2 MB, free: 24.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.06e-05/0.2676, allocations: 0 / 411.2 MB, free: 24.22 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.686e-06/0.2677, allocations: 0 / 411.2 MB, free: 24.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.804e-05/0.2677, allocations: 319 kB / 411.6 MB, free: 23.9 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.423e-05/0.2677, allocations: 11.98 kB / 411.6 MB, free: 23.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.443e-05/0.2678, allocations: 35.42 kB / 411.6 MB, free: 23.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.741e-05/0.2679, allocations: 51.36 kB / 411.7 MB, free: 23.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2679, allocations: 0 / 411.7 MB, free: 23.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001005/0.268, allocations: 77.5 kB / 411.7 MB, free: 23.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.268, allocations: 8.031 kB / 411.7 MB, free: 23.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.268, allocations: 0 / 411.7 MB, free: 23.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.268, allocations: 4 kB / 411.7 MB, free: 23.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.894e-05/0.2681, allocations: 11.98 kB / 411.8 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.2681, allocations: 0 / 411.8 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.99e-05/0.2681, allocations: 4 kB / 411.8 MB, free: 23.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.261e-06/0.2681, allocations: 4 kB / 411.8 MB, free: 23.67 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.555e-05/0.2682, allocations: 121.8 kB / 411.9 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.386e-05/0.2683, allocations: 53.55 kB / 411.9 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.585e-05/0.2683, allocations: 12.23 kB / 411.9 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.2683, allocations: 7.938 kB / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.2683, allocations: 0 / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.2683, allocations: 0 / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.2684, allocations: 173.5 kB / 412.1 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.2684, allocations: 4 kB / 412.1 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.036e-05/0.2685, allocations: 8 kB / 412.1 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.2685, allocations: 4 kB / 412.1 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.2685, allocations: 0 / 412.1 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2685, allocations: 4 kB / 412.1 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2685, allocations: 0 / 412.1 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000127/0.2686, allocations: 176.2 kB / 412.3 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.333e-05/0.2687, allocations: 93 kB / 412.4 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.2687, allocations: 0 / 412.4 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.372e-05/0.2688, allocations: 11.98 kB / 412.4 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.893e-05/0.2688, allocations: 0 / 412.4 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.499e-06/0.2688, allocations: 4 kB / 412.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.108e-05/0.2689, allocations: 103.2 kB / 412.5 MB, free: 22.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2689, allocations: 0 / 412.5 MB, free: 22.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002008/0.2691, allocations: 8 kB / 412.5 MB, free: 22.79 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 8.202e-05/0.2692, allocations: 99.23 kB / 412.6 MB, free: 22.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001177/0.2693, allocations: 35.92 kB / 412.7 MB, free: 22.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2693, allocations: 0 / 412.7 MB, free: 22.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.912e-05/0.2693, allocations: 8 kB / 412.7 MB, free: 22.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.2697, allocations: 26.88 kB / 412.7 MB, free: 22.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002815/0.27, allocations: 199.2 kB / 412.9 MB, free: 22.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001262/0.2701, allocations: 0.6926 MB / 413.6 MB, free: 21.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.155e-05/0.2701, allocations: 11.44 kB / 413.6 MB, free: 21.65 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2701, allocations: 0 / 413.6 MB, free: 21.65 MB / 298.7 MB Notification: Performance of Templates: time 0.001712/0.2718, allocations: 0.6745 MB / 414.3 MB, free: 20.98 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches