Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001371/0.001371, allocations: 111.7 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001752/0.001752, allocations: 213.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 59.84 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2588, allocations: 50.54 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003287/0.2621, allocations: 1.91 MB / 411.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002115/0.2643, allocations: 1.294 MB / 413.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.2644, allocations: 4 kB / 413.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003585/0.2648, allocations: 71.66 kB / 413.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004579/0.2653, allocations: 135.4 kB / 413.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007998/0.2661, allocations: 230.8 kB / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003206/0.2665, allocations: 183.5 kB / 413.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.2666, allocations: 29.55 kB / 413.8 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.2668, allocations: 83.62 kB / 413.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.2669, allocations: 83.62 kB / 413.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.332e-05/0.267, allocations: 12 kB / 413.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001891/0.2672, allocations: 71.89 kB / 414 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.282e-05/0.2673, allocations: 55.83 kB / 414.1 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.552e-05/0.2674, allocations: 79.42 kB / 414.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003994/0.2678, allocations: 247 kB / 414.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.2678, allocations: 4 kB / 414.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2678, allocations: 0 / 414.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.2678, allocations: 0 / 414.4 MB, free: 13.1 MB / 334.1 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.0007839/0.2686, allocations: 0.5517 MB / 414.9 MB, free: 12.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.2687, allocations: 12.03 kB / 415 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.38e-05/0.2687, allocations: 24.66 kB / 415 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004582/0.2692, allocations: 287.6 kB / 415.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.2692, allocations: 8.375 kB / 415.3 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.896e-05/0.2693, allocations: 12.06 kB / 415.3 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003702/0.2697, allocations: 180.4 kB / 415.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.2697, allocations: 0 / 415.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.2697, allocations: 0 / 415.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.2697, allocations: 0 / 415.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.2698, allocations: 51.91 kB / 415.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005529/0.2704, allocations: 478.4 kB / 416 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002597/0.2707, allocations: 138.5 kB / 416.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.457e-05/0.2708, allocations: 55.42 kB / 416.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.911e-05/0.2708, allocations: 8 kB / 416.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002047/0.271, allocations: 101 kB / 416.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.312e-06/0.271, allocations: 0 / 416.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004332/0.2715, allocations: 177.6 kB / 416.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.987e-05/0.2716, allocations: 188 kB / 416.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003348/0.2719, allocations: 335 kB / 417 MB, free: 10.22 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.272, allocations: 29.7 kB / 417 MB, free: 10.19 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.394e-05/0.2721, allocations: 136.3 kB / 417.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.986e-05/0.2721, allocations: 19.88 kB / 417.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.984e-05/0.2722, allocations: 33.7 kB / 417.2 MB, free: 9.988 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.2723, allocations: 334.8 kB / 417.5 MB, free: 9.652 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.697e-05/0.2724, allocations: 35.92 kB / 417.5 MB, free: 9.617 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.2725, allocations: 91.7 kB / 417.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001711/0.2727, allocations: 97.08 kB / 417.7 MB, free: 9.387 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.2727, allocations: 0 / 417.7 MB, free: 9.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000268/0.273, allocations: 137.2 kB / 417.8 MB, free: 9.246 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.273, allocations: 10.66 kB / 417.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.273, allocations: 4.156 kB / 417.9 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.273, allocations: 7.938 kB / 417.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.2731, allocations: 23.92 kB / 417.9 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.2732, allocations: 4 kB / 417.9 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.292e-05/0.2733, allocations: 15.88 kB / 417.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.2733, allocations: 4 kB / 417.9 MB, free: 9.18 MB / 334.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001426/0.2734, allocations: 161.7 kB / 418.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.358e-05/0.2735, allocations: 73.36 kB / 418.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.864e-05/0.2736, allocations: 29.73 kB / 418.2 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.2736, allocations: 0 / 418.2 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2736, allocations: 7.938 kB / 418.2 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.2736, allocations: 3.938 kB / 418.2 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002295/0.2739, allocations: 249.8 kB / 418.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.2739, allocations: 0 / 418.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8e-05/0.274, allocations: 23.92 kB / 418.5 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.274, allocations: 0 / 418.5 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.274, allocations: 4 kB / 418.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.274, allocations: 0 / 418.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.274, allocations: 12.05 kB / 418.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003135/0.2743, allocations: 187.2 kB / 418.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.685e-05/0.2744, allocations: 108.8 kB / 418.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.119e-05/0.2745, allocations: 11.98 kB / 418.8 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.31e-05/0.2746, allocations: 8 kB / 418.8 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.907e-05/0.2746, allocations: 15.92 kB / 418.8 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.2747, allocations: 4 kB / 418.8 MB, free: 8.188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002596/0.2749, allocations: 249.9 kB / 419 MB, free: 7.945 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2749, allocations: 0 / 419 MB, free: 7.945 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002884/0.2752, allocations: 39.91 kB / 419.1 MB, free: 7.906 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009354/0.2762, allocations: 417.1 kB / 419.5 MB, free: 7.625 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002421/0.2764, allocations: 83.78 kB / 419.6 MB, free: 7.543 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.2765, allocations: 4 kB / 419.6 MB, free: 7.539 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.15e-05/0.2765, allocations: 27.98 kB / 419.6 MB, free: 7.512 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004235/0.277, allocations: 79.31 kB / 419.7 MB, free: 7.434 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006377/0.2776, allocations: 417.3 kB / 420.1 MB, free: 6.984 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.2779, allocations: 0.7437 MB / 420.8 MB, free: 6.215 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.305e-05/0.278, allocations: 31.42 kB / 420.9 MB, free: 6.184 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.278, allocations: 0 / 420.9 MB, free: 6.184 MB / 334.1 MB Notification: Performance of Templates: time 0.005607/0.2836, allocations: 3.061 MB / 423.9 MB, free: 3.129 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches