Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.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.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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001619/0.001619, allocations: 110.3 kB / 17.06 MB, free: 6.137 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.001805/0.001805, allocations: 191 kB / 18 MB, free: 5.219 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.625/1.625, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 47.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3956/0.3967, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.004146/0.4009, allocations: 1.903 MB / 402.6 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002206/0.4031, allocations: 1.153 MB / 403.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000146/0.4033, allocations: 11.94 kB / 403.8 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003783/0.4037, allocations: 63.66 kB / 403.8 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002905/0.4041, allocations: 91.59 kB / 403.9 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009226/0.405, allocations: 249.5 kB / 404.2 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002725/0.4053, allocations: 187.5 kB / 404.4 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.4055, allocations: 25.5 kB / 404.4 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.4056, allocations: 75.69 kB / 404.5 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001408/0.4058, allocations: 79.67 kB / 404.5 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.686e-05/0.4058, allocations: 8 kB / 404.5 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002065/0.406, allocations: 71.89 kB / 404.6 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.4062, allocations: 55.77 kB / 404.7 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001287/0.4063, allocations: 91.41 kB / 404.8 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004001/0.4067, allocations: 244.3 kB / 405 MB, free: 4.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.4067, allocations: 0 / 405 MB, free: 4.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4067, allocations: 3.938 kB / 405 MB, free: 4.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.4067, allocations: 0 / 405 MB, free: 4.562 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.0008663/0.4076, allocations: 0.5311 MB / 405.5 MB, free: 3.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.4077, allocations: 11.89 kB / 405.5 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.946e-05/0.4078, allocations: 24.66 kB / 405.6 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004394/0.4082, allocations: 291.6 kB / 405.9 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.4083, allocations: 12.31 kB / 405.9 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.4083, allocations: 8.125 kB / 405.9 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003871/0.4087, allocations: 172.4 kB / 406 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.4087, allocations: 4 kB / 406 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.4087, allocations: 0 / 406 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.4087, allocations: 0 / 406 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.4089, allocations: 43.91 kB / 406.1 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006586/0.4095, allocations: 482.3 kB / 406.6 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.4098, allocations: 146.5 kB / 406.7 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.788e-05/0.4099, allocations: 55.42 kB / 406.8 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.497e-05/0.41, allocations: 0 / 406.8 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002128/0.4102, allocations: 105 kB / 406.9 MB, free: 2.453 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.4102, allocations: 0 / 406.9 MB, free: 2.453 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004452/0.4107, allocations: 165.2 kB / 407 MB, free: 2.285 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/0.4108, allocations: 187.9 kB / 407.2 MB, free: 2.059 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000349/0.4112, allocations: 331 kB / 407.5 MB, free: 1.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.458e-05/0.4112, allocations: 33.7 kB / 407.6 MB, free: 1.688 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.4113, allocations: 124.4 kB / 407.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.261e-05/0.4114, allocations: 27.77 kB / 407.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.173e-05/0.4114, allocations: 29.72 kB / 407.7 MB, free: 1.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.4116, allocations: 338.8 kB / 408.1 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.937e-05/0.4117, allocations: 31.92 kB / 408.1 MB, free: 1.125 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001155/0.4118, allocations: 99.7 kB / 408.2 MB, free: 1 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.412, allocations: 93.08 kB / 408.3 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.412, allocations: 0 / 408.3 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002525/0.4122, allocations: 141.7 kB / 408.4 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.4123, allocations: 4 kB / 408.4 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.4123, allocations: 0 / 408.4 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.721e-05/0.4123, allocations: 4 kB / 408.4 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.4125, allocations: 27.92 kB / 408.5 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.4125, allocations: 4 kB / 408.5 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.4126, allocations: 23.88 kB / 408.5 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.4126, allocations: 4 kB / 408.5 MB, free: 0.6797 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.0002012/0.4128, allocations: 162.3 kB / 408.6 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.413, allocations: 69.42 kB / 408.7 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.008e-05/0.4131, allocations: 29.7 kB / 408.7 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.4131, allocations: 0 / 408.7 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.4131, allocations: 7.938 kB / 408.8 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.4131, allocations: 7.984 kB / 408.8 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003337/0.4135, allocations: 237.6 kB / 409 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.4135, allocations: 4 kB / 409 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001047/0.4136, allocations: 19.92 kB / 409 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.4136, allocations: 0 / 409 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.4136, allocations: 4 kB / 409 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.4136, allocations: 0 / 409 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/0.4136, allocations: 0 / 409 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003543/0.414, allocations: 187.3 kB / 409.2 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.4141, allocations: 120.7 kB / 409.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.306e-05/0.4142, allocations: 4 kB / 409.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.738e-05/0.4143, allocations: 7.984 kB / 409.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.995e-05/0.4143, allocations: 15.92 kB / 409.3 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.309e-05/0.4144, allocations: 4.047 kB / 409.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003145/0.4147, allocations: 249.9 kB / 409.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4147, allocations: 0 / 409.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003355/0.415, allocations: 32 kB / 409.6 MB, free: 15.42 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.00118/0.4162, allocations: 431.6 kB / 410.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000302/0.4165, allocations: 87.83 kB / 410.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4166, allocations: 320 / 410.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.593e-05/0.4167, allocations: 39.98 kB / 410.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004746/0.4171, allocations: 74.06 kB / 410.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008491/0.418, allocations: 377.9 kB / 410.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/0.4184, allocations: 0.7479 MB / 411.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.429e-05/0.4185, allocations: 25.55 kB / 411.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.075e-05/0.4186, allocations: 27.36 kB / 411.4 MB, free: 13.74 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4186, allocations: 0 / 411.4 MB, free: 13.74 MB / 334.1 MB Notification: Performance of Templates: time 0.008154/0.4267, allocations: 2.942 MB / 414.4 MB, free: 10.83 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches