Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 95.44 kB / 16.04 MB, free: 5.117 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.1028/0.1028, allocations: 12.63 MB / 29.41 MB, free: 5.305 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001941/0.0001941, allocations: 4 kB / 40.27 MB, free: 44 kB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.005828/0.006039, allocations: 2.845 MB / 43.11 MB, free: 5.477 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.UpSample): time 1.521/1.527, allocations: 277.9 MB / 321.1 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002008/1.529, allocations: 1.247 MB / 322.3 MB, free: 9.02 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002004/1.53, allocations: 3.938 kB / 322.3 MB, free: 9.016 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006735/1.53, allocations: 144.3 kB / 322.5 MB, free: 8.875 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002677/1.531, allocations: 101.5 kB / 322.6 MB, free: 8.777 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007071/1.531, allocations: 218.3 kB / 322.8 MB, free: 8.566 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003218/1.532, allocations: 215.4 kB / 323 MB, free: 8.355 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002196/1.532, allocations: 101.4 kB / 323.1 MB, free: 8.254 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/1.532, allocations: 83.56 kB / 323.2 MB, free: 8.172 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/1.532, allocations: 86.33 kB / 323.2 MB, free: 8.09 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.206e-05/1.532, allocations: 4 kB / 323.2 MB, free: 8.086 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000128/1.532, allocations: 43.92 kB / 323.3 MB, free: 8.043 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.716e-05/1.532, allocations: 43.83 kB / 323.3 MB, free: 8 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.691e-05/1.533, allocations: 109.1 kB / 323.4 MB, free: 7.887 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002825/1.533, allocations: 231.1 kB / 323.7 MB, free: 7.66 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/1.533, allocations: 0 / 323.7 MB, free: 7.66 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.693e-06/1.533, allocations: 2.719 kB / 323.7 MB, free: 7.66 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.479e-06/1.533, allocations: 0 / 323.7 MB, free: 7.66 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000696/1.534, allocations: 0.5041 MB / 324.2 MB, free: 7.102 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/1.534, allocations: 12.02 kB / 324.2 MB, free: 7.09 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.006e-05/1.534, allocations: 25.69 kB / 324.2 MB, free: 7.066 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/1.534, allocations: 278.7 kB / 324.5 MB, free: 6.75 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/1.534, allocations: 12.38 kB / 324.5 MB, free: 6.738 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.279e-05/1.534, allocations: 20.72 kB / 324.5 MB, free: 6.719 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005049/1.535, allocations: 289.9 kB / 324.8 MB, free: 6.418 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/1.535, allocations: 0.75 kB / 324.8 MB, free: 6.418 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/1.535, allocations: 4 kB / 324.8 MB, free: 6.414 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/1.535, allocations: 8.875 kB / 324.8 MB, free: 6.406 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001372/1.535, allocations: 59.89 kB / 324.9 MB, free: 6.348 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004825/1.535, allocations: 393.6 kB / 325.2 MB, free: 5.91 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/1.536, allocations: 170 kB / 325.4 MB, free: 5.719 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001312/1.536, allocations: 89.09 kB / 325.5 MB, free: 5.625 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/1.536, allocations: 11.98 kB / 325.5 MB, free: 5.613 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001603/1.536, allocations: 73.27 kB / 325.6 MB, free: 5.531 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.583e-06/1.536, allocations: 0 / 325.6 MB, free: 5.531 MB / 250.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004513/1.536, allocations: 225.3 kB / 325.8 MB, free: 5.305 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.107e-05/1.536, allocations: 145 kB / 325.9 MB, free: 5.133 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002642/1.537, allocations: 269.7 kB / 326.2 MB, free: 4.859 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/1.537, allocations: 29.7 kB / 326.2 MB, free: 4.824 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.974e-05/1.537, allocations: 121.7 kB / 326.4 MB, free: 4.703 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.93e-05/1.537, allocations: 27.8 kB / 326.4 MB, free: 4.676 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.276e-06/1.537, allocations: 4 kB / 326.4 MB, free: 4.672 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/1.537, allocations: 336.9 kB / 326.7 MB, free: 4.336 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.989e-05/1.537, allocations: 40.44 kB / 326.8 MB, free: 4.297 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/1.537, allocations: 169.4 kB / 326.9 MB, free: 4.078 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002276/1.538, allocations: 199.2 kB / 327.1 MB, free: 3.832 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/1.538, allocations: 0 / 327.1 MB, free: 3.832 MB / 250.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003209/1.538, allocations: 221 kB / 327.3 MB, free: 3.609 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/1.538, allocations: 8 kB / 327.3 MB, free: 3.602 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/1.538, allocations: 4 kB / 327.3 MB, free: 3.598 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/1.538, allocations: 8.906 kB / 327.4 MB, free: 3.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.524e-05/1.538, allocations: 27.92 kB / 327.4 MB, free: 3.562 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/1.538, allocations: 11.94 kB / 327.4 MB, free: 3.551 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/1.538, allocations: 23.78 kB / 327.4 MB, free: 3.527 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/1.538, allocations: 15.94 kB / 327.4 MB, free: 3.512 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001404/1.538, allocations: 163.9 kB / 327.6 MB, free: 3.344 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/1.539, allocations: 125.3 kB / 327.7 MB, free: 3.215 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.761e-05/1.539, allocations: 29.7 kB / 327.7 MB, free: 3.184 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/1.539, allocations: 8 kB / 327.8 MB, free: 3.176 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/1.539, allocations: 0 / 327.8 MB, free: 3.176 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/1.539, allocations: 7.938 kB / 327.8 MB, free: 3.168 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001889/1.539, allocations: 241.5 kB / 328 MB, free: 2.883 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/1.539, allocations: 320 / 328 MB, free: 2.883 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.005e-05/1.539, allocations: 19.88 kB / 328 MB, free: 2.863 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/1.539, allocations: 4 kB / 328 MB, free: 2.859 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/1.539, allocations: 7.984 kB / 328 MB, free: 2.852 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/1.539, allocations: 0 / 328 MB, free: 2.852 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.539, allocations: 4 kB / 328 MB, free: 2.848 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003173/1.539, allocations: 226.7 kB / 328.3 MB, free: 2.602 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/1.539, allocations: 120.7 kB / 328.4 MB, free: 2.465 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/1.539, allocations: 8 kB / 328.4 MB, free: 2.457 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.216e-05/1.539, allocations: 11.98 kB / 328.4 MB, free: 2.445 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.246e-05/1.54, allocations: 4 kB / 328.4 MB, free: 2.441 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.806e-05/1.54, allocations: 8 kB / 328.4 MB, free: 2.434 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001791/1.54, allocations: 200.5 kB / 328.6 MB, free: 2.242 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.54, allocations: 0 / 328.6 MB, free: 2.242 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002716/1.54, allocations: 51.92 kB / 328.6 MB, free: 2.191 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.0008761/1.541, allocations: 490.2 kB / 329.1 MB, free: 1.84 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000285/1.541, allocations: 136.3 kB / 329.3 MB, free: 1.707 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/1.541, allocations: 0 / 329.3 MB, free: 1.707 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.764e-05/1.541, allocations: 27.92 kB / 329.3 MB, free: 1.68 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004595/1.542, allocations: 120.4 kB / 329.4 MB, free: 1.566 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006272/1.542, allocations: 453.1 kB / 329.8 MB, free: 1.09 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/1.543, allocations: 0.7482 MB / 330.6 MB, free: 324 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.572e-05/1.543, allocations: 34.16 kB / 330.6 MB, free: 292 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.92e-05/1.543, allocations: 23.44 kB / 330.7 MB, free: 268 kB / 250.7 MB Notification: Performance of SimCode: time 2.2e-07/1.543, allocations: 0 / 330.7 MB, free: 268 kB / 250.7 MB Notification: Performance of Templates: time 0.006097/1.549, allocations: 2.829 MB / 333.5 MB, free: 13.45 MB / 266.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches