Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001108, allocations: 99.62 kB / 16.05 MB, free: 5.594 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09763/0.09763, allocations: 12.63 MB / 29.41 MB, free: 6.07 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001891/0.0001891, allocations: 4 kB / 40.28 MB, free: 0.6016 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.005276/0.005479, allocations: 2.827 MB / 43.11 MB, free: 6.051 MB / 33.03 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 1.479/1.485, allocations: 277.9 MB / 321 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001647/1.486, allocations: 1.217 MB / 322.2 MB, free: 9.086 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/1.486, allocations: 0 / 322.2 MB, free: 9.086 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005337/1.487, allocations: 148.3 kB / 322.3 MB, free: 8.941 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002427/1.487, allocations: 100.9 kB / 322.4 MB, free: 8.844 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004922/1.488, allocations: 187.1 kB / 322.6 MB, free: 8.664 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002245/1.488, allocations: 183.4 kB / 322.8 MB, free: 8.484 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/1.488, allocations: 72.38 kB / 322.9 MB, free: 8.414 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.689e-05/1.488, allocations: 75.62 kB / 322.9 MB, free: 8.34 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.242e-05/1.488, allocations: 64.44 kB / 323 MB, free: 8.277 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.697e-05/1.488, allocations: 4 kB / 323 MB, free: 8.273 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/1.488, allocations: 46.92 kB / 323.1 MB, free: 8.23 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.189e-05/1.488, allocations: 39.77 kB / 323.1 MB, free: 8.191 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.946e-05/1.489, allocations: 89.25 kB / 323.2 MB, free: 8.098 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002278/1.489, allocations: 199.3 kB / 323.4 MB, free: 7.902 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/1.489, allocations: 0 / 323.4 MB, free: 7.902 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.373e-06/1.489, allocations: 0 / 323.4 MB, free: 7.902 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.744e-06/1.489, allocations: 0 / 323.4 MB, free: 7.902 MB / 250.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.0006189/1.489, allocations: 485.6 kB / 323.9 MB, free: 7.375 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/1.489, allocations: 12.03 kB / 323.9 MB, free: 7.363 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.321e-05/1.49, allocations: 25.3 kB / 323.9 MB, free: 7.34 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/1.49, allocations: 269.4 kB / 324.2 MB, free: 7.035 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/1.49, allocations: 8.375 kB / 324.2 MB, free: 7.027 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.547e-05/1.49, allocations: 8.125 kB / 324.2 MB, free: 7.02 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002956/1.49, allocations: 165 kB / 324.3 MB, free: 6.832 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/1.49, allocations: 9.547 kB / 324.3 MB, free: 6.824 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/1.49, allocations: 0 / 324.3 MB, free: 6.824 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/1.49, allocations: 4 kB / 324.3 MB, free: 6.82 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.498e-05/1.49, allocations: 31.98 kB / 324.4 MB, free: 6.789 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004792/1.491, allocations: 458.6 kB / 324.8 MB, free: 6.285 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/1.491, allocations: 129.9 kB / 324.9 MB, free: 6.125 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.675e-05/1.491, allocations: 63.34 kB / 325 MB, free: 6.051 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/1.491, allocations: 1.562 kB / 325 MB, free: 6.051 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001593/1.491, allocations: 91.08 kB / 325.1 MB, free: 5.945 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/1.491, allocations: 0 / 325.1 MB, free: 5.945 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003281/1.492, allocations: 155.1 kB / 325.3 MB, free: 5.789 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/1.492, allocations: 168 kB / 325.4 MB, free: 5.59 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002482/1.492, allocations: 261 kB / 325.7 MB, free: 5.324 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/1.492, allocations: 29.7 kB / 325.7 MB, free: 5.289 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.675e-05/1.492, allocations: 124.9 kB / 325.8 MB, free: 5.16 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/1.492, allocations: 19.8 kB / 325.8 MB, free: 5.141 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-06/1.492, allocations: 1.281 kB / 325.8 MB, free: 5.141 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001029/1.492, allocations: 330.8 kB / 326.2 MB, free: 4.809 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.069e-05/1.492, allocations: 24.77 kB / 326.2 MB, free: 4.785 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.974e-05/1.492, allocations: 76.73 kB / 326.3 MB, free: 4.688 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001322/1.493, allocations: 93.33 kB / 326.4 MB, free: 4.582 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/1.493, allocations: 0 / 326.4 MB, free: 4.582 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002052/1.493, allocations: 130.5 kB / 326.5 MB, free: 4.449 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/1.493, allocations: 11.98 kB / 326.5 MB, free: 4.438 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/1.493, allocations: 2.188 kB / 326.5 MB, free: 4.438 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/1.493, allocations: 7.938 kB / 326.5 MB, free: 4.43 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.335e-05/1.493, allocations: 12 kB / 326.5 MB, free: 4.418 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/1.493, allocations: 4 kB / 326.5 MB, free: 4.414 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.089e-05/1.493, allocations: 11.92 kB / 326.5 MB, free: 4.402 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/1.493, allocations: 5.375 kB / 326.5 MB, free: 4.398 MB / 250.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,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.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.0001216/1.493, allocations: 157.6 kB / 326.7 MB, free: 4.234 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.555e-05/1.493, allocations: 65.95 kB / 326.8 MB, free: 4.164 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.845e-05/1.493, allocations: 29.73 kB / 326.8 MB, free: 4.133 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/1.493, allocations: 4 kB / 326.8 MB, free: 4.129 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/1.493, allocations: 0 / 326.8 MB, free: 4.129 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/1.493, allocations: 3.938 kB / 326.8 MB, free: 4.125 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001827/1.494, allocations: 229.6 kB / 327 MB, free: 3.852 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/1.494, allocations: 0 / 327 MB, free: 3.852 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.501e-05/1.494, allocations: 4 kB / 327 MB, free: 3.848 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.167e-06/1.494, allocations: 4 kB / 327 MB, free: 3.844 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/1.494, allocations: 7.984 kB / 327 MB, free: 3.836 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/1.494, allocations: 4 kB / 327 MB, free: 3.832 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/1.494, allocations: 4 kB / 327 MB, free: 3.828 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002238/1.494, allocations: 171.3 kB / 327.2 MB, free: 3.633 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.565e-05/1.494, allocations: 112.8 kB / 327.3 MB, free: 3.504 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.026e-05/1.494, allocations: 8 kB / 327.3 MB, free: 3.496 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.178e-05/1.494, allocations: 11.98 kB / 327.3 MB, free: 3.484 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.616e-05/1.494, allocations: 7.938 kB / 327.3 MB, free: 3.477 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/1.494, allocations: 7.984 kB / 327.4 MB, free: 3.469 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001607/1.494, allocations: 196.5 kB / 327.5 MB, free: 3.281 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.494, allocations: 0 / 327.5 MB, free: 3.281 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000225/1.495, allocations: 31.98 kB / 327.6 MB, free: 3.25 MB / 250.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,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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.0008929/1.495, allocations: 487.9 kB / 328.1 MB, free: 2.902 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001857/1.496, allocations: 75.91 kB / 328.1 MB, free: 2.828 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/1.496, allocations: 3.938 kB / 328.1 MB, free: 2.824 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.523e-05/1.496, allocations: 35.92 kB / 328.2 MB, free: 2.789 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/1.496, allocations: 60.42 kB / 328.2 MB, free: 2.727 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005222/1.497, allocations: 374.9 kB / 328.6 MB, free: 2.328 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002674/1.497, allocations: 0.7321 MB / 329.3 MB, free: 1.57 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.289e-05/1.497, allocations: 29.77 kB / 329.4 MB, free: 1.543 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.843e-05/1.497, allocations: 23.44 kB / 329.4 MB, free: 1.523 MB / 250.7 MB Notification: Performance of SimCode: time 2.3e-07/1.497, allocations: 0 / 329.4 MB, free: 1.523 MB / 250.7 MB Notification: Performance of Templates: time 0.005085/1.502, allocations: 2.39 MB / 331.8 MB, free: 15.16 MB / 266.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches