Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00156/0.00156, allocations: 191.6 kB / 17.38 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.573/1.573, allocations: 226.6 MB / 244.7 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001151/0.001151, allocations: 99.8 kB / 296.8 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.0003133, allocations: 8 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2605, allocations: 51.3 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.001776/0.2623, allocations: 1.393 MB / 409.4 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003371/0.2627, allocations: 159.5 kB / 409.6 MB, free: 26.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.301e-05/0.2628, allocations: 0 / 409.6 MB, free: 26.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.461e-05/0.2628, allocations: 7.938 kB / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.263, allocations: 3.984 kB / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002537/0.2632, allocations: 40.41 kB / 409.7 MB, free: 26.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.404e-05/0.2633, allocations: 54.06 kB / 409.7 MB, free: 26.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.2635, allocations: 24.52 kB / 409.7 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.309e-05/0.2635, allocations: 17.28 kB / 409.7 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.385e-05/0.2636, allocations: 19.86 kB / 409.8 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.841e-05/0.2636, allocations: 3.984 kB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.179e-05/0.2636, allocations: 4.75 kB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.675e-05/0.2637, allocations: 11.98 kB / 409.8 MB, free: 25.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.822e-05/0.2637, allocations: 54.45 kB / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.948e-05/0.2638, allocations: 39.91 kB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2638, allocations: 0 / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2638, allocations: 8.688 kB / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.2638, allocations: 0 / 409.9 MB, free: 25.88 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003796/0.2642, allocations: 380 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.2642, allocations: 12.03 kB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.327e-05/0.2643, allocations: 8.844 kB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001642/0.2645, allocations: 192.1 kB / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.2645, allocations: 8.312 kB / 410.5 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.2645, allocations: 8.375 kB / 410.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003037/0.2648, allocations: 163.5 kB / 410.6 MB, free: 25.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.2648, allocations: 192 / 410.6 MB, free: 25.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.2648, allocations: 7.922 kB / 410.6 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.2648, allocations: 0 / 410.6 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.789e-05/0.265, allocations: 39.92 kB / 410.7 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003007/0.2653, allocations: 369.9 kB / 411 MB, free: 24.56 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.2655, allocations: 131.8 kB / 411.2 MB, free: 24.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.656e-05/0.2656, allocations: 54.62 kB / 411.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.39e-05/0.2656, allocations: 0 / 411.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.57e-05/0.2656, allocations: 38.56 kB / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.183e-06/0.2656, allocations: 4 kB / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003002/0.2659, allocations: 129.4 kB / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.266, allocations: 106.8 kB / 411.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.001e-05/0.2661, allocations: 144.4 kB / 411.6 MB, free: 23.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.558e-06/0.2661, allocations: 29.95 kB / 411.7 MB, free: 23.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.414e-05/0.2662, allocations: 88.14 kB / 411.8 MB, free: 23.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.442e-05/0.2662, allocations: 11.84 kB / 411.8 MB, free: 23.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.028e-06/0.2662, allocations: 4 kB / 411.8 MB, free: 23.74 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.234e-05/0.2663, allocations: 318.8 kB / 412.1 MB, free: 23.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.481e-05/0.2663, allocations: 15.98 kB / 412.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.608e-05/0.2664, allocations: 79.66 kB / 412.2 MB, free: 23.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.85e-05/0.2665, allocations: 95.53 kB / 412.3 MB, free: 23.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2665, allocations: 4 kB / 412.3 MB, free: 23.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00015/0.2666, allocations: 109.4 kB / 412.4 MB, free: 23.06 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.2667, allocations: 11.92 kB / 412.4 MB, free: 23.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.2667, allocations: 4 kB / 412.4 MB, free: 23.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.2667, allocations: 4 kB / 412.4 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.173e-05/0.2668, allocations: 16.19 kB / 412.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/0.2668, allocations: 4.281 kB / 412.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.626e-05/0.2668, allocations: 19.92 kB / 412.4 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.2668, allocations: 4 kB / 412.4 MB, free: 23 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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.539e-05/0.2669, allocations: 125.7 kB / 412.6 MB, free: 22.87 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.267, allocations: 77.73 kB / 412.6 MB, free: 22.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.653e-05/0.2671, allocations: 16.7 kB / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2671, allocations: 4 kB / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2671, allocations: 0 / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2671, allocations: 0 / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001713/0.2673, allocations: 193.4 kB / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.2673, allocations: 4 kB / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.737e-05/0.2674, allocations: 23.92 kB / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2674, allocations: 0 / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.2674, allocations: 0 / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.2674, allocations: 4 kB / 412.9 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2674, allocations: 0 / 412.9 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002712/0.2677, allocations: 316.2 kB / 413.2 MB, free: 22.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.45e-05/0.2677, allocations: 101 kB / 413.3 MB, free: 22.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.2677, allocations: 3.938 kB / 413.3 MB, free: 22.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.89e-05/0.2678, allocations: 4 kB / 413.3 MB, free: 22.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.97e-05/0.2679, allocations: 4 kB / 413.3 MB, free: 22.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.2679, allocations: 8 kB / 413.3 MB, free: 22.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.21e-05/0.2679, allocations: 107.2 kB / 413.4 MB, free: 21.92 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2679, allocations: 0 / 413.4 MB, free: 21.92 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002508/0.2682, allocations: 8 kB / 413.4 MB, free: 21.91 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 (10): * Single equations (assignments): 10 * 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 9.707e-05/0.2683, allocations: 99.25 kB / 413.5 MB, free: 21.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001544/0.2685, allocations: 67.97 kB / 413.6 MB, free: 21.74 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2685, allocations: 0 / 413.6 MB, free: 21.74 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.729e-05/0.2685, allocations: 11.98 kB / 413.6 MB, free: 21.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004297/0.2689, allocations: 46.36 kB / 413.6 MB, free: 21.68 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003401/0.2693, allocations: 249.4 kB / 413.9 MB, free: 21.4 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001803/0.2695, allocations: 0.7004 MB / 414.6 MB, free: 20.67 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/0.2695, allocations: 11.53 kB / 414.6 MB, free: 20.66 MB / 298.7 MB Notification: Performance of SimCode: time 3.61e-07/0.2695, allocations: 7.875 kB / 414.6 MB, free: 20.65 MB / 298.7 MB Notification: Performance of Templates: time 0.002114/0.2717, allocations: 0.8967 MB / 415.5 MB, free: 19.75 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches