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.001112/0.001112, allocations: 190.5 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 226.6 MB / 244.7 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008269/0.000827, allocations: 90.23 kB / 296.7 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002568/0.0002569, allocations: 8 kB / 356.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2461, allocations: 51.3 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.002121/0.2483, allocations: 1.602 MB / 409.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.2499, allocations: 1.191 MB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.25, allocations: 5.594 kB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003003/0.2503, allocations: 59.8 kB / 410.9 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002572/0.2506, allocations: 116.6 kB / 411 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005799/0.2512, allocations: 213.8 kB / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001729/0.2514, allocations: 161.1 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.2515, allocations: 41.11 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.596e-05/0.2516, allocations: 59.66 kB / 411.5 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.401e-05/0.2517, allocations: 71.62 kB / 411.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.986e-05/0.2517, allocations: 4 kB / 411.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000117/0.2518, allocations: 55.95 kB / 411.6 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.413e-05/0.2519, allocations: 43.83 kB / 411.7 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.549e-05/0.252, allocations: 93.19 kB / 411.7 MB, free: 24.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002302/0.2523, allocations: 184.6 kB / 411.9 MB, free: 23.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2523, allocations: 0 / 411.9 MB, free: 23.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2523, allocations: 1.094 kB / 411.9 MB, free: 23.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.2523, allocations: 0 / 411.9 MB, free: 23.83 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.0005487/0.2528, allocations: 0.5046 MB / 412.4 MB, free: 23.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.2529, allocations: 12.03 kB / 412.4 MB, free: 23.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.92e-05/0.2529, allocations: 28.66 kB / 412.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.2532, allocations: 287.5 kB / 412.8 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.2532, allocations: 8.375 kB / 412.8 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.71e-05/0.2533, allocations: 8.125 kB / 412.8 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002999/0.2536, allocations: 173.3 kB / 412.9 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.2536, allocations: 0 / 412.9 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.2536, allocations: 3.938 kB / 412.9 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.806e-05/0.2536, allocations: 7.938 kB / 413 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001101/0.2537, allocations: 35.98 kB / 413 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004595/0.2542, allocations: 482.5 kB / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002152/0.2544, allocations: 142.5 kB / 413.6 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.415e-05/0.2545, allocations: 59.36 kB / 413.7 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.051e-05/0.2546, allocations: 8 kB / 413.7 MB, free: 21.87 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001765/0.2548, allocations: 100.9 kB / 413.8 MB, free: 21.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.2548, allocations: 0 / 413.8 MB, free: 21.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003571/0.2551, allocations: 165.3 kB / 413.9 MB, free: 21.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.2552, allocations: 192.2 kB / 414.1 MB, free: 21.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000261/0.2555, allocations: 335 kB / 414.4 MB, free: 21.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.2555, allocations: 33.7 kB / 414.5 MB, free: 20.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.877e-05/0.2556, allocations: 128.4 kB / 414.6 MB, free: 20.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.948e-05/0.2556, allocations: 19.75 kB / 414.6 MB, free: 20.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-06/0.2556, allocations: 0 / 414.6 MB, free: 20.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.132e-05/0.2557, allocations: 338.8 kB / 414.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.632e-05/0.2558, allocations: 23.98 kB / 415 MB, free: 20.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.708e-05/0.2559, allocations: 103.7 kB / 415.1 MB, free: 20.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001339/0.256, allocations: 101.3 kB / 415.2 MB, free: 20.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.256, allocations: 0 / 415.2 MB, free: 20.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002067/0.2563, allocations: 137.2 kB / 415.3 MB, free: 20.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.2563, allocations: 8 kB / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.2563, allocations: 0 / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.2563, allocations: 4 kB / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.2564, allocations: 24.19 kB / 415.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.2564, allocations: 8 kB / 415.3 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.602e-05/0.2565, allocations: 15.83 kB / 415.4 MB, free: 20.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.2565, allocations: 4 kB / 415.4 MB, free: 20.01 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 0.0001017/0.2566, allocations: 157.8 kB / 415.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.105e-05/0.2567, allocations: 77.3 kB / 415.6 MB, free: 19.76 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.614e-05/0.2568, allocations: 29.73 kB / 415.6 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2568, allocations: 64 / 415.6 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2568, allocations: 4 kB / 415.6 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.2568, allocations: 11.92 kB / 415.6 MB, free: 19.72 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001577/0.257, allocations: 237.6 kB / 415.9 MB, free: 19.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.257, allocations: 7.984 kB / 415.9 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.557e-05/0.257, allocations: 12 kB / 415.9 MB, free: 19.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.2571, allocations: 0 / 415.9 MB, free: 19.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.2571, allocations: 8 kB / 415.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.2571, allocations: 3.984 kB / 415.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2571, allocations: 0 / 415.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002255/0.2573, allocations: 189.6 kB / 416.1 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.867e-05/0.2574, allocations: 120.7 kB / 416.2 MB, free: 19.06 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.193e-05/0.2574, allocations: 4 kB / 416.2 MB, free: 19.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.834e-05/0.2575, allocations: 15.94 kB / 416.2 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.165e-05/0.2576, allocations: 15.92 kB / 416.2 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.2576, allocations: 8 kB / 416.2 MB, free: 19.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002426/0.2578, allocations: 249.9 kB / 416.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2579, allocations: 0 / 416.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002658/0.2581, allocations: 35.98 kB / 416.5 MB, free: 18.74 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.0008504/0.259, allocations: 415.9 kB / 416.9 MB, free: 18.47 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002082/0.2592, allocations: 88.02 kB / 417 MB, free: 18.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2592, allocations: 0 / 417 MB, free: 18.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.057e-05/0.2593, allocations: 31.92 kB / 417.1 MB, free: 18.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004174/0.2597, allocations: 65.06 kB / 417.1 MB, free: 18.28 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005366/0.2603, allocations: 464.2 kB / 417.6 MB, free: 17.79 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001716/0.2605, allocations: 0.7478 MB / 418.3 MB, free: 17.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.709e-05/0.2605, allocations: 23.42 kB / 418.3 MB, free: 17 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2605, allocations: 0 / 418.3 MB, free: 17 MB / 298.7 MB Notification: Performance of Templates: time 0.00407/0.2646, allocations: 3.007 MB / 421.3 MB, free: 14 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