Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00125/0.00125, allocations: 192.1 kB / 17.38 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 226.6 MB / 244.7 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009985/0.0009992, allocations: 100.8 kB / 296.8 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000256/0.000256, allocations: 8 kB / 356.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2643, allocations: 51.3 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.001487/0.2659, allocations: 1.284 MB / 409.3 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006254/0.2665, allocations: 477.8 kB / 409.8 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.214e-05/0.2666, allocations: 7.875 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.617e-05/0.2666, allocations: 0 / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001304/0.2668, allocations: 7.938 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002569/0.267, allocations: 44.45 kB / 409.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.822e-05/0.2671, allocations: 41.02 kB / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.2672, allocations: 8.938 kB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.2674, allocations: 27.91 kB / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.355e-05/0.2674, allocations: 17.7 kB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.666e-05/0.2674, allocations: 4 kB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.852e-05/0.2675, allocations: 4 kB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.718e-05/0.2675, allocations: 11.98 kB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.323e-05/0.2676, allocations: 49.45 kB / 410 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.84e-05/0.2677, allocations: 40.55 kB / 410.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2677, allocations: 0 / 410.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2677, allocations: 0.8438 kB / 410.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.147e-06/0.2677, allocations: 0 / 410.1 MB, free: 25.71 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.0003896/0.2681, allocations: 361.3 kB / 410.4 MB, free: 25.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.2681, allocations: 9.281 kB / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.2683, allocations: 20.83 kB / 410.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.2684, allocations: 195.3 kB / 410.6 MB, free: 25.06 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.2684, allocations: 8.359 kB / 410.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.306e-05/0.2685, allocations: 4.375 kB / 410.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002425/0.2687, allocations: 124.8 kB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.2687, allocations: 0 / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.906e-06/0.2687, allocations: 0 / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.2687, allocations: 0 / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.411e-05/0.2688, allocations: 27.92 kB / 410.8 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002513/0.2691, allocations: 267.3 kB / 411.1 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.2693, allocations: 146.2 kB / 411.2 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.773e-05/0.2693, allocations: 33.77 kB / 411.2 MB, free: 24.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.2694, allocations: 0 / 411.2 MB, free: 24.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.342e-05/0.2694, allocations: 38.56 kB / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.2694, allocations: 0 / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002183/0.2696, allocations: 85.5 kB / 411.4 MB, free: 24.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.346e-05/0.2696, allocations: 85.11 kB / 411.4 MB, free: 24.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.279e-05/0.2697, allocations: 139.9 kB / 411.6 MB, free: 23.97 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.2698, allocations: 29.83 kB / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.973e-05/0.2698, allocations: 88.12 kB / 411.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.157e-05/0.2698, allocations: 4 kB / 411.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-06/0.2698, allocations: 0 / 411.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.508e-05/0.2699, allocations: 318.8 kB / 412 MB, free: 23.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.953e-05/0.2699, allocations: 11.98 kB / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.991e-05/0.27, allocations: 43.36 kB / 412.1 MB, free: 23.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.588e-05/0.27, allocations: 51.42 kB / 412.1 MB, free: 23.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2701, allocations: 0 / 412.1 MB, free: 23.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001118/0.2702, allocations: 77.47 kB / 412.2 MB, free: 23.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.2702, allocations: 8 kB / 412.2 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.2702, allocations: 3.938 kB / 412.2 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.2702, allocations: 0 / 412.2 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.858e-05/0.2703, allocations: 11.98 kB / 412.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.2703, allocations: 4 kB / 412.2 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.805e-05/0.2703, allocations: 12.06 kB / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.2704, allocations: 0 / 412.2 MB, free: 23.27 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 6.044e-05/0.2704, allocations: 125.7 kB / 412.3 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.419e-05/0.2705, allocations: 49.59 kB / 412.4 MB, free: 23.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.626e-05/0.2705, allocations: 12.25 kB / 412.4 MB, free: 23.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.2705, allocations: 0 / 412.4 MB, free: 23.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.2705, allocations: 4 kB / 412.4 MB, free: 23.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2705, allocations: 3.938 kB / 412.4 MB, free: 23.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.2707, allocations: 169.6 kB / 412.6 MB, free: 22.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2707, allocations: 4 kB / 412.6 MB, free: 22.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.056e-05/0.2707, allocations: 11.98 kB / 412.6 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.2707, allocations: 4 kB / 412.6 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.2707, allocations: 0 / 412.6 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.2708, allocations: 0 / 412.6 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2708, allocations: 0 / 412.6 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001323/0.2709, allocations: 180.2 kB / 412.8 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.619e-05/0.2709, allocations: 93 kB / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.271, allocations: 4 kB / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.185e-05/0.271, allocations: 7.984 kB / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.604e-05/0.2711, allocations: 4.375 kB / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-06/0.2711, allocations: 0 / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.554e-05/0.2711, allocations: 105.8 kB / 413 MB, free: 22.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2711, allocations: 0 / 413 MB, free: 22.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002017/0.2713, allocations: 8 kB / 413 MB, free: 22.39 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.024e-05/0.2714, allocations: 103.2 kB / 413.1 MB, free: 22.28 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000125/0.2715, allocations: 35.92 kB / 413.1 MB, free: 22.24 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2716, allocations: 0 / 413.1 MB, free: 22.24 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.475e-05/0.2716, allocations: 16.23 kB / 413.1 MB, free: 22.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/0.2719, allocations: 26.44 kB / 413.2 MB, free: 22.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002592/0.2722, allocations: 215.2 kB / 413.4 MB, free: 21.95 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001165/0.2723, allocations: 0.6966 MB / 414.1 MB, free: 21.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.531e-05/0.2723, allocations: 7.438 kB / 414.1 MB, free: 21.22 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2723, allocations: 3.938 kB / 414.1 MB, free: 21.22 MB / 298.7 MB Notification: Performance of Templates: time 0.001691/0.274, allocations: 0.7248 MB / 414.8 MB, free: 20.5 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample1/Sample1.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches