Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 114.9 kB / 17.74 MB, free: 5.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 188.4 kB / 18.67 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001087, allocations: 51.86 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.261, allocations: 49.43 MB / 401.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.003275/0.2643, allocations: 1.896 MB / 403.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001762/0.2661, allocations: 1.071 MB / 404.4 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.2662, allocations: 4 kB / 404.4 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005711/0.2668, allocations: 154.7 kB / 404.5 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002792/0.2671, allocations: 119.5 kB / 404.6 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005179/0.2676, allocations: 209.4 kB / 404.8 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002275/0.2679, allocations: 187.5 kB / 405 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.268, allocations: 41.47 kB / 405.1 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001076/0.2681, allocations: 75.69 kB / 405.1 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.2682, allocations: 71.69 kB / 405.2 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.531e-05/0.2683, allocations: 8 kB / 405.2 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.2684, allocations: 59.91 kB / 405.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.569e-05/0.2685, allocations: 47.83 kB / 405.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.659e-05/0.2686, allocations: 71.48 kB / 405.4 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002906/0.2689, allocations: 212.5 kB / 405.6 MB, free: 4.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.2689, allocations: 4 kB / 405.6 MB, free: 4.816 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2689, allocations: 0 / 405.6 MB, free: 4.816 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.2689, allocations: 0 / 405.6 MB, free: 4.816 MB / 318.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.0006688/0.2696, allocations: 0.504 MB / 406.1 MB, free: 4.258 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.2696, allocations: 15.89 kB / 406.1 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.469e-05/0.2697, allocations: 20.66 kB / 406.1 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.27, allocations: 270.8 kB / 406.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.27, allocations: 4.375 kB / 406.4 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.265e-05/0.27, allocations: 12.12 kB / 406.4 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003141/0.2703, allocations: 163.6 kB / 406.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.2704, allocations: 0 / 406.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.2704, allocations: 0 / 406.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.2704, allocations: 0 / 406.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001143/0.2705, allocations: 43.92 kB / 406.6 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004937/0.271, allocations: 450.5 kB / 407.1 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002471/0.2713, allocations: 134.5 kB / 407.2 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.799e-05/0.2714, allocations: 55.42 kB / 407.3 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.2714, allocations: 7.984 kB / 407.3 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001821/0.2716, allocations: 92.98 kB / 407.4 MB, free: 2.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.352e-06/0.2716, allocations: 0 / 407.4 MB, free: 2.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003797/0.272, allocations: 157.7 kB / 407.5 MB, free: 2.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.327e-05/0.2721, allocations: 162.2 kB / 407.7 MB, free: 2.465 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002697/0.2724, allocations: 268.9 kB / 407.9 MB, free: 2.188 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.2724, allocations: 25.7 kB / 408 MB, free: 2.156 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.49e-05/0.2725, allocations: 120.3 kB / 408.1 MB, free: 2.031 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.852e-05/0.2725, allocations: 19.8 kB / 408.1 MB, free: 2.012 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-05/0.2726, allocations: 41.56 kB / 408.1 MB, free: 1.965 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.2727, allocations: 338.8 kB / 408.5 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.869e-05/0.2728, allocations: 27.98 kB / 408.5 MB, free: 1.598 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.931e-05/0.2729, allocations: 70.86 kB / 408.6 MB, free: 1.504 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.2731, allocations: 97.36 kB / 408.7 MB, free: 1.391 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2731, allocations: 3.938 kB / 408.7 MB, free: 1.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002316/0.2733, allocations: 121.4 kB / 408.8 MB, free: 1.262 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.2733, allocations: 8.156 kB / 408.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.2734, allocations: 4 kB / 408.8 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.2734, allocations: 0 / 408.8 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.336e-05/0.2735, allocations: 23.92 kB / 408.8 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.2735, allocations: 0 / 408.8 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.366e-05/0.2736, allocations: 11.94 kB / 408.8 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.2736, allocations: 4 kB / 408.8 MB, free: 1.211 MB / 318.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.000133/0.2737, allocations: 150.3 kB / 409 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.973e-05/0.2738, allocations: 77.34 kB / 409.1 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.047e-05/0.2739, allocations: 25.7 kB / 409.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.2739, allocations: 0 / 409.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.2739, allocations: 0 / 409.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.2739, allocations: 11.92 kB / 409.1 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000196/0.2741, allocations: 225.6 kB / 409.3 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.2741, allocations: 4 kB / 409.3 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.975e-05/0.2741, allocations: 7.938 kB / 409.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.2742, allocations: 0 / 409.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.2742, allocations: 8 kB / 409.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.2742, allocations: 4.062 kB / 409.3 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.368e-06/0.2742, allocations: 4 kB / 409.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000243/0.2744, allocations: 179.2 kB / 409.5 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.25e-05/0.2745, allocations: 112.9 kB / 409.6 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.11e-05/0.2746, allocations: 4 kB / 409.6 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.536e-05/0.2747, allocations: 12 kB / 409.6 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.776e-05/0.2747, allocations: 7.922 kB / 409.6 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.2747, allocations: 8 kB / 409.7 MB, free: 280 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001824/0.2749, allocations: 192.5 kB / 409.8 MB, free: 88 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2749, allocations: 0 / 409.8 MB, free: 88 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002663/0.2752, allocations: 28 kB / 409.9 MB, free: 60 kB / 318.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.0009507/0.2762, allocations: 427.6 kB / 410.3 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002365/0.2764, allocations: 83.84 kB / 410.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2764, allocations: 0 / 410.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.28e-05/0.2765, allocations: 24 kB / 410.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004422/0.2769, allocations: 68 kB / 410.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005612/0.2775, allocations: 359.9 kB / 410.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.2778, allocations: 0.7356 MB / 411.5 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.318e-05/0.2779, allocations: 27.42 kB / 411.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2779, allocations: 3.938 kB / 411.6 MB, free: 14.44 MB / 334.1 MB Notification: Performance of Templates: time 0.004903/0.2828, allocations: 2.705 MB / 414.3 MB, free: 11.76 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches