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.001681/0.001681, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 226.5 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007583/0.0007581, allocations: 105.5 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002682/0.0002683, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2589, allocations: 51.3 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.001683/0.2606, allocations: 1.28 MB / 408.8 MB, free: 26.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008153/0.2615, allocations: 483.2 kB / 409.3 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.76e-05/0.2616, allocations: 7.875 kB / 409.3 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.408e-05/0.2617, allocations: 0.625 kB / 409.3 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001452/0.2618, allocations: 12.78 kB / 409.3 MB, free: 26.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003107/0.2621, allocations: 43.88 kB / 409.3 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.939e-05/0.2622, allocations: 41.58 kB / 409.4 MB, free: 26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.097e-05/0.2623, allocations: 11.98 kB / 409.4 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.2625, allocations: 15.94 kB / 409.4 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.586e-05/0.2626, allocations: 25.08 kB / 409.4 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.483e-05/0.2626, allocations: 0 / 409.4 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.143e-05/0.2626, allocations: 7.984 kB / 409.4 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.369e-05/0.2627, allocations: 17.08 kB / 409.4 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.435e-05/0.2627, allocations: 33.7 kB / 409.5 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.697e-05/0.2628, allocations: 31.94 kB / 409.5 MB, free: 25.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2628, allocations: 0.75 kB / 409.5 MB, free: 25.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2628, allocations: 0 / 409.5 MB, free: 25.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.997e-06/0.2628, allocations: 0.75 kB / 409.5 MB, free: 25.85 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.0004095/0.2633, allocations: 367.5 kB / 409.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.2633, allocations: 11.97 kB / 409.9 MB, free: 25.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.2634, allocations: 19.89 kB / 409.9 MB, free: 25.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001599/0.2636, allocations: 194.9 kB / 410.1 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.2636, allocations: 0 / 410.1 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.2636, allocations: 7.953 kB / 410.1 MB, free: 25.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002602/0.2639, allocations: 119.3 kB / 410.2 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.2639, allocations: 4 kB / 410.2 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.2639, allocations: 4 kB / 410.2 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.264, allocations: 0 / 410.2 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.858e-05/0.264, allocations: 27.92 kB / 410.2 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002568/0.2643, allocations: 265.8 kB / 410.5 MB, free: 24.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.2645, allocations: 146.2 kB / 410.6 MB, free: 24.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.104e-05/0.2646, allocations: 33.77 kB / 410.7 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.2646, allocations: 0 / 410.7 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.392e-05/0.2646, allocations: 38.56 kB / 410.7 MB, free: 24.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.2646, allocations: 0 / 410.7 MB, free: 24.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002439/0.2649, allocations: 89.5 kB / 410.8 MB, free: 24.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.2649, allocations: 77.11 kB / 410.9 MB, free: 24.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.167e-05/0.265, allocations: 148.5 kB / 411 MB, free: 24.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.288e-06/0.265, allocations: 25.7 kB / 411 MB, free: 24.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.379e-05/0.2651, allocations: 92.12 kB / 411.1 MB, free: 23.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.254e-05/0.2651, allocations: 3.906 kB / 411.1 MB, free: 23.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.058e-06/0.2651, allocations: 4 kB / 411.1 MB, free: 23.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.865e-05/0.2651, allocations: 314.8 kB / 411.5 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.241e-05/0.2652, allocations: 15.98 kB / 411.5 MB, free: 23.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.13e-05/0.2652, allocations: 39.42 kB / 411.5 MB, free: 23.58 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.321e-05/0.2653, allocations: 12 kB / 411.5 MB, free: 23.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.2653, allocations: 3.953 kB / 411.5 MB, free: 23.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001169/0.2654, allocations: 73.61 kB / 411.6 MB, free: 23.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.2654, allocations: 7.938 kB / 411.6 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.2655, allocations: 0 / 411.6 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.2655, allocations: 4 kB / 411.6 MB, free: 23.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.857e-05/0.2655, allocations: 11.98 kB / 411.6 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.974e-06/0.2655, allocations: 0 / 411.6 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.108e-05/0.2656, allocations: 11.94 kB / 411.6 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.2656, allocations: 4 kB / 411.6 MB, free: 23.45 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.932e-05/0.2657, allocations: 118 kB / 411.7 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.741e-05/0.2657, allocations: 57.48 kB / 411.8 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.151e-05/0.2658, allocations: 8.25 kB / 411.8 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2658, allocations: 7.984 kB / 411.8 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2658, allocations: 0 / 411.8 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2658, allocations: 3.938 kB / 411.8 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001119/0.2659, allocations: 165.7 kB / 412 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2659, allocations: 0 / 412 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.336e-05/0.266, allocations: 15.95 kB / 412 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.266, allocations: 7.984 kB / 412 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-06/0.266, allocations: 0 / 412 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.266, allocations: 0 / 412 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.266, allocations: 4 kB / 412 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001374/0.2662, allocations: 164.3 kB / 412.2 MB, free: 22.81 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.811e-05/0.2662, allocations: 105.3 kB / 412.3 MB, free: 22.69 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/0.2662, allocations: 3.953 kB / 412.3 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.373e-05/0.2663, allocations: 4 kB / 412.3 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.301e-05/0.2663, allocations: 0 / 412.3 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-06/0.2664, allocations: 0 / 412.3 MB, free: 22.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.577e-05/0.2664, allocations: 110.1 kB / 412.4 MB, free: 22.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2664, allocations: 0 / 412.4 MB, free: 22.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002014/0.2666, allocations: 8 kB / 412.4 MB, free: 22.57 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.437e-05/0.2667, allocations: 99.25 kB / 412.5 MB, free: 22.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.2669, allocations: 43.89 kB / 412.5 MB, free: 22.42 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2669, allocations: 0 / 412.5 MB, free: 22.42 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.656e-05/0.2669, allocations: 8 kB / 412.5 MB, free: 22.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/0.2673, allocations: 22.56 kB / 412.6 MB, free: 22.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003348/0.2676, allocations: 227.1 kB / 412.8 MB, free: 22.13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001449/0.2678, allocations: 0.6887 MB / 413.5 MB, free: 21.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.734e-05/0.2678, allocations: 11.42 kB / 413.5 MB, free: 21.4 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.2678, allocations: 11.94 kB / 413.5 MB, free: 21.39 MB / 298.7 MB Notification: Performance of Templates: time 0.001843/0.2697, allocations: 0.7167 MB / 414.2 MB, free: 20.68 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