Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00153/0.00153, allocations: 195.3 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 226.5 MB / 244.7 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009234/0.0009236, allocations: 101.2 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002744/0.0002748, allocations: 11.98 kB / 356.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.261, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.001493/0.2625, allocations: 1.27 MB / 409.3 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006684/0.2632, allocations: 473.9 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.438e-05/0.2633, allocations: 0 / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.912e-05/0.2634, allocations: 7.984 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001331/0.2635, allocations: 7.938 kB / 409.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.2638, allocations: 35.91 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.867e-05/0.2638, allocations: 36.3 kB / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.841e-05/0.2639, allocations: 13.27 kB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.2641, allocations: 15.94 kB / 409.9 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.755e-05/0.2641, allocations: 25.56 kB / 409.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.2641, allocations: 0 / 409.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.828e-05/0.2642, allocations: 4 kB / 409.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.571e-05/0.2642, allocations: 7.984 kB / 409.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.527e-05/0.2643, allocations: 46.64 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.955e-05/0.2644, allocations: 39.92 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2644, allocations: 0 / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2644, allocations: 0.625 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.2644, allocations: 0 / 410 MB, free: 25.73 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003799/0.2648, allocations: 355.4 kB / 410.4 MB, free: 25.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.2648, allocations: 15.97 kB / 410.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.265, allocations: 20.83 kB / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.2651, allocations: 188.1 kB / 410.6 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.2651, allocations: 1.344 kB / 410.6 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.054e-05/0.2652, allocations: 8.375 kB / 410.6 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002082/0.2654, allocations: 91.61 kB / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2654, allocations: 0 / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-06/0.2654, allocations: 4.5 kB / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.2654, allocations: 0.7812 kB / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.145e-05/0.2655, allocations: 31.86 kB / 410.7 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002442/0.2657, allocations: 261.8 kB / 411 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.929e-05/0.2658, allocations: 45.14 kB / 411 MB, free: 24.56 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.299e-05/0.2659, allocations: 25.78 kB / 411 MB, free: 24.53 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.2659, allocations: 0 / 411 MB, free: 24.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.668e-05/0.2659, allocations: 34.56 kB / 411.1 MB, free: 24.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 7.52e-07/0.2659, allocations: 0 / 411.1 MB, free: 24.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002121/0.2661, allocations: 81.61 kB / 411.2 MB, free: 24.4 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.528e-05/0.2662, allocations: 77.11 kB / 411.2 MB, free: 24.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.786e-05/0.2663, allocations: 144.4 kB / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.327e-06/0.2663, allocations: 25.7 kB / 411.4 MB, free: 24.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.044e-05/0.2664, allocations: 84.14 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.172e-05/0.2664, allocations: 7.906 kB / 411.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-06/0.2664, allocations: 0 / 411.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.959e-05/0.2665, allocations: 326.9 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.729e-05/0.2665, allocations: 11.94 kB / 411.8 MB, free: 23.69 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.255e-05/0.2665, allocations: 21.7 kB / 411.8 MB, free: 23.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.755e-05/0.2666, allocations: 37.77 kB / 411.9 MB, free: 23.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2666, allocations: 0 / 411.9 MB, free: 23.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.781e-05/0.2667, allocations: 57.62 kB / 411.9 MB, free: 23.56 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.2668, allocations: 8 kB / 411.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.2668, allocations: 0 / 411.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.2668, allocations: 3.984 kB / 411.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.255e-05/0.2669, allocations: 12.05 kB / 412 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.2669, allocations: 4 kB / 412 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.313e-05/0.2669, allocations: 0 / 412 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.2669, allocations: 4 kB / 412 MB, free: 23.53 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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.681e-05/0.267, allocations: 117.8 kB / 412.1 MB, free: 23.4 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.715e-05/0.267, allocations: 41.53 kB / 412.1 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.939e-05/0.2671, allocations: 11.88 kB / 412.1 MB, free: 23.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.2671, allocations: 0 / 412.1 MB, free: 23.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2671, allocations: 12.03 kB / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.2671, allocations: 0 / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001227/0.2672, allocations: 173.5 kB / 412.3 MB, free: 23.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.2672, allocations: 0 / 412.3 MB, free: 23.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.336e-05/0.2673, allocations: 11.98 kB / 412.3 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.2673, allocations: 3.938 kB / 412.3 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.2673, allocations: 0 / 412.3 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2673, allocations: 0 / 412.3 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2673, allocations: 0 / 412.3 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.2674, allocations: 172.2 kB / 412.5 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.701e-05/0.2675, allocations: 89 kB / 412.6 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.2675, allocations: 3.984 kB / 412.6 MB, free: 22.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.305e-05/0.2676, allocations: 4 kB / 412.6 MB, free: 22.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.675e-05/0.2676, allocations: 0 / 412.6 MB, free: 22.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-06/0.2676, allocations: 8.031 kB / 412.6 MB, free: 22.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.612e-05/0.2677, allocations: 107.2 kB / 412.7 MB, free: 22.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2677, allocations: 0 / 412.7 MB, free: 22.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001977/0.2679, allocations: 4 kB / 412.7 MB, free: 22.67 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 (2): * Single equations (assignments): 2 * 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.456e-05/0.268, allocations: 103.2 kB / 412.8 MB, free: 22.56 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001126/0.2681, allocations: 24.05 kB / 412.8 MB, free: 22.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2681, allocations: 0 / 412.8 MB, free: 22.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.519e-05/0.2681, allocations: 19.92 kB / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.2685, allocations: 15.7 kB / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002607/0.2687, allocations: 203.4 kB / 413.1 MB, free: 22.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001183/0.2689, allocations: 0.6887 MB / 413.8 MB, free: 21.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.47e-05/0.2689, allocations: 11.44 kB / 413.8 MB, free: 21.54 MB / 298.7 MB Notification: Performance of SimCode: time 4.1e-07/0.2689, allocations: 0 / 413.8 MB, free: 21.54 MB / 298.7 MB Notification: Performance of Templates: time 0.001618/0.2705, allocations: 0.6771 MB / 414.4 MB, free: 20.87 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches