Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000966/0.0009659, allocations: 197 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 226.5 MB / 244.3 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007447/0.0007447, allocations: 106.4 kB / 296.4 MB, free: 6.758 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002316/0.0002314, allocations: 8 kB / 356.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2635, allocations: 51.3 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.001761/0.2653, allocations: 1.595 MB / 409.1 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.2667, allocations: 1.208 MB / 410.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.262e-05/0.2668, allocations: 7.938 kB / 410.3 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002544/0.267, allocations: 60.66 kB / 410.4 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002229/0.2673, allocations: 108.8 kB / 410.5 MB, free: 24.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005149/0.2678, allocations: 220.5 kB / 410.7 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001473/0.268, allocations: 155.5 kB / 410.8 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.04e-05/0.268, allocations: 38.77 kB / 410.9 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.324e-05/0.2681, allocations: 61.42 kB / 410.9 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.901e-05/0.2682, allocations: 67.69 kB / 411 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.2682, allocations: 7.938 kB / 411 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.2684, allocations: 51.95 kB / 411.1 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.334e-05/0.2684, allocations: 49.03 kB / 411.1 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.086e-05/0.2685, allocations: 53.58 kB / 411.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001644/0.2686, allocations: 184.5 kB / 411.3 MB, free: 23.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2686, allocations: 5.094 kB / 411.3 MB, free: 23.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2687, allocations: 0 / 411.3 MB, free: 23.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.2687, allocations: 0 / 411.3 MB, free: 23.94 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005173/0.2692, allocations: 0.5013 MB / 411.8 MB, free: 23.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.2692, allocations: 12.02 kB / 411.9 MB, free: 23.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.645e-05/0.2693, allocations: 24.25 kB / 411.9 MB, free: 23.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002551/0.2695, allocations: 285.9 kB / 412.2 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.2696, allocations: 8 kB / 412.2 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.2696, allocations: 7.953 kB / 412.2 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002888/0.2699, allocations: 173.2 kB / 412.3 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.2699, allocations: 0 / 412.3 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.2699, allocations: 4 kB / 412.4 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.2699, allocations: 0 / 412.4 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001058/0.27, allocations: 43.91 kB / 412.4 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004039/0.2705, allocations: 478.5 kB / 412.9 MB, free: 22.24 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.2707, allocations: 150.4 kB / 413 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.062e-05/0.2708, allocations: 59.41 kB / 413.1 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.2708, allocations: 4.062 kB / 413.1 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001673/0.271, allocations: 101 kB / 413.2 MB, free: 21.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.271, allocations: 0 / 413.2 MB, free: 21.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003291/0.2713, allocations: 165.3 kB / 413.3 MB, free: 21.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.791e-05/0.2714, allocations: 187.9 kB / 413.5 MB, free: 21.47 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002443/0.2716, allocations: 339.4 kB / 413.8 MB, free: 21.13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.2716, allocations: 33.7 kB / 413.9 MB, free: 21.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.768e-05/0.2717, allocations: 132.3 kB / 414 MB, free: 20.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.006e-05/0.2717, allocations: 19.8 kB / 414 MB, free: 20.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-06/0.2717, allocations: 0 / 414 MB, free: 20.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.162e-05/0.2718, allocations: 334.8 kB / 414.4 MB, free: 20.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.516e-05/0.2719, allocations: 27.98 kB / 414.4 MB, free: 20.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.349e-05/0.272, allocations: 91.72 kB / 414.5 MB, free: 20.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.507e-05/0.272, allocations: 39.92 kB / 414.5 MB, free: 20.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2721, allocations: 0 / 414.5 MB, free: 20.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001984/0.2723, allocations: 141.2 kB / 414.6 MB, free: 20.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.2723, allocations: 8 kB / 414.7 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.2723, allocations: 0 / 414.7 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.2723, allocations: 0 / 414.7 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.2724, allocations: 23.98 kB / 414.7 MB, free: 20.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.2724, allocations: 3.938 kB / 414.7 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.604e-05/0.2725, allocations: 11.94 kB / 414.7 MB, free: 20.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.919e-06/0.2725, allocations: 8.312 kB / 414.7 MB, free: 20.21 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,hold1.u,hold1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 9.487e-05/0.2726, allocations: 165.9 kB / 414.9 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.738e-05/0.2727, allocations: 73.36 kB / 414.9 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.206e-05/0.2727, allocations: 25.73 kB / 415 MB, free: 19.94 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2728, allocations: 4 kB / 415 MB, free: 19.94 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2728, allocations: 0 / 415 MB, free: 19.94 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.2728, allocations: 11.92 kB / 415 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.2729, allocations: 241.4 kB / 415.2 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.273, allocations: 4 kB / 415.2 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.699e-05/0.273, allocations: 24.05 kB / 415.2 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.273, allocations: 0 / 415.2 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.273, allocations: 4 kB / 415.2 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.2731, allocations: 7.922 kB / 415.3 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2731, allocations: 0 / 415.3 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002129/0.2733, allocations: 178.6 kB / 415.4 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.843e-05/0.2734, allocations: 124.8 kB / 415.5 MB, free: 19.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.908e-05/0.2734, allocations: 8 kB / 415.6 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.857e-05/0.2735, allocations: 0 / 415.6 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.353e-05/0.2735, allocations: 11.98 kB / 415.6 MB, free: 19.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.2735, allocations: 8 kB / 415.6 MB, free: 19.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001649/0.2737, allocations: 245.9 kB / 415.8 MB, free: 19 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2737, allocations: 7.875 kB / 415.8 MB, free: 18.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002291/0.274, allocations: 43.89 kB / 415.9 MB, free: 18.95 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 0.0007495/0.2747, allocations: 422.2 kB / 416.3 MB, free: 18.67 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001955/0.2749, allocations: 79.89 kB / 416.4 MB, free: 18.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2749, allocations: 4 kB / 416.4 MB, free: 18.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.149e-05/0.275, allocations: 31.92 kB / 416.4 MB, free: 18.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.2754, allocations: 73.27 kB / 416.5 MB, free: 18.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004731/0.2758, allocations: 467.7 kB / 416.9 MB, free: 17.99 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001439/0.276, allocations: 0.7518 MB / 417.7 MB, free: 17.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.389e-05/0.2761, allocations: 19.44 kB / 417.7 MB, free: 17.19 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2761, allocations: 0 / 417.7 MB, free: 17.19 MB / 298.7 MB Notification: Performance of Templates: time 0.003691/0.2798, allocations: 3.024 MB / 420.7 MB, free: 14.18 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches