Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009011/0.0009012, allocations: 173.5 kB / 16.07 MB, free: 5.535 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.326/1.326, allocations: 205.6 MB / 222.4 MB, free: 13.55 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000706/0.000706, allocations: 90.2 kB / 270.8 MB, free: 13.07 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.177/0.177, allocations: 43.69 MB / 362.7 MB, free: 11.04 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002956/0.0002956, allocations: 8 kB / 432.3 MB, free: 19.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0858/0.08612, allocations: 58.86 MB / 491.2 MB, free: 8.145 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001517/0.08767, allocations: 1.231 MB / 492.4 MB, free: 6.895 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007566/0.08846, allocations: 0.4932 MB / 492.9 MB, free: 6.395 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.298e-05/0.08852, allocations: 0 / 492.9 MB, free: 6.395 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.879e-05/0.08855, allocations: 3.938 kB / 492.9 MB, free: 6.391 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 8.709e-05/0.08864, allocations: 11.91 kB / 492.9 MB, free: 6.379 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001879/0.08884, allocations: 27.98 kB / 492.9 MB, free: 6.352 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.08896, allocations: 91.69 kB / 493 MB, free: 6.262 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.336e-05/0.08906, allocations: 8 kB / 493 MB, free: 6.254 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.08919, allocations: 39.84 kB / 493.1 MB, free: 6.215 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.697e-05/0.08927, allocations: 31.83 kB / 493.1 MB, free: 6.184 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.0893, allocations: 4 kB / 493.1 MB, free: 6.18 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.613e-05/0.08932, allocations: 4 kB / 493.1 MB, free: 6.176 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.022e-05/0.08936, allocations: 19.92 kB / 493.1 MB, free: 6.156 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.063e-05/0.08942, allocations: 61.5 kB / 493.2 MB, free: 6.09 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001024/0.08953, allocations: 71.97 kB / 493.3 MB, free: 6.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.08955, allocations: 0 / 493.3 MB, free: 6.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.08955, allocations: 4 kB / 493.3 MB, free: 6.016 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.08956, allocations: 0 / 493.3 MB, free: 6.016 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005668/0.09014, allocations: 387.3 kB / 493.6 MB, free: 5.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.09018, allocations: 8.031 kB / 493.7 MB, free: 5.582 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.202e-05/0.09023, allocations: 16.84 kB / 493.7 MB, free: 5.566 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.09035, allocations: 180.2 kB / 493.8 MB, free: 5.352 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.09038, allocations: 8.359 kB / 493.9 MB, free: 5.344 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.09041, allocations: 8.375 kB / 493.9 MB, free: 5.336 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002225/0.09063, allocations: 85.95 kB / 493.9 MB, free: 5.246 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.09065, allocations: 4 kB / 493.9 MB, free: 5.242 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.09067, allocations: 4 kB / 494 MB, free: 5.238 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.09068, allocations: 0 / 494 MB, free: 5.238 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.09082, allocations: 55.97 kB / 494 MB, free: 5.184 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005156/0.09135, allocations: 324.6 kB / 494.3 MB, free: 4.816 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.09153, allocations: 90.53 kB / 494.4 MB, free: 4.719 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.149e-05/0.09164, allocations: 48.84 kB / 494.5 MB, free: 4.668 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.09166, allocations: 0 / 494.5 MB, free: 4.668 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002009/0.09187, allocations: 95.36 kB / 494.6 MB, free: 4.562 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 5.28e-06/0.09189, allocations: 3.984 kB / 494.6 MB, free: 4.559 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004105/0.0923, allocations: 202.2 kB / 494.8 MB, free: 4.355 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.09236, allocations: 59.39 kB / 494.8 MB, free: 4.285 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.619e-05/0.09245, allocations: 117.8 kB / 494.9 MB, free: 4.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.09248, allocations: 33.7 kB / 495 MB, free: 4.121 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.337e-05/0.09253, allocations: 96.31 kB / 495.1 MB, free: 4.023 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.78e-05/0.09257, allocations: 35.55 kB / 495.1 MB, free: 3.988 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.215e-06/0.09259, allocations: 4 kB / 495.1 MB, free: 3.984 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.978e-05/0.09268, allocations: 330.8 kB / 495.4 MB, free: 3.652 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.086e-05/0.09277, allocations: 31.98 kB / 495.4 MB, free: 3.621 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.09288, allocations: 85.06 kB / 495.5 MB, free: 3.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001822/0.09307, allocations: 117.1 kB / 495.6 MB, free: 3.387 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.09308, allocations: 0 / 495.6 MB, free: 3.387 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00027/0.09336, allocations: 165.4 kB / 495.8 MB, free: 3.219 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.09338, allocations: 4 kB / 495.8 MB, free: 3.215 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.09339, allocations: 4 kB / 495.8 MB, free: 3.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.09341, allocations: 0 / 495.8 MB, free: 3.211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.09353, allocations: 24.3 kB / 495.8 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.09354, allocations: 7.938 kB / 495.8 MB, free: 3.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.861e-05/0.09362, allocations: 15.92 kB / 495.9 MB, free: 3.164 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.09364, allocations: 12.16 kB / 495.9 MB, free: 3.152 MB / 330.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: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 9.481e-05/0.09374, allocations: 132 kB / 496 MB, free: 3.016 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.599e-05/0.09376, allocations: 7.906 kB / 496 MB, free: 3.008 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.947e-05/0.0938, allocations: 8.5 kB / 496 MB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.09381, allocations: 7.984 kB / 496 MB, free: 2.988 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.09382, allocations: 3.938 kB / 496 MB, free: 2.984 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.09383, allocations: 0 / 496 MB, free: 2.984 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004819/0.09432, allocations: 446.5 kB / 496.5 MB, free: 2.492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.09433, allocations: 0 / 496.5 MB, free: 2.492 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.691e-05/0.09439, allocations: 15.88 kB / 496.5 MB, free: 2.477 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.0944, allocations: 0 / 496.5 MB, free: 2.477 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.09442, allocations: 7.984 kB / 496.5 MB, free: 2.469 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.09443, allocations: 0 / 496.5 MB, free: 2.469 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.09444, allocations: 0 / 496.5 MB, free: 2.469 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003085/0.09475, allocations: 255.4 kB / 496.7 MB, free: 2.203 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.24e-05/0.0948, allocations: 92.89 kB / 496.8 MB, free: 2.094 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.09483, allocations: 4 kB / 496.8 MB, free: 2.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.09494, allocations: 11.98 kB / 496.8 MB, free: 2.078 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.641e-05/0.09499, allocations: 7.984 kB / 496.9 MB, free: 2.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.09501, allocations: 8 kB / 496.9 MB, free: 2.062 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.833e-05/0.09507, allocations: 103.2 kB / 497 MB, free: 1.961 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09507, allocations: 0 / 497 MB, free: 1.961 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002266/0.09531, allocations: 20 kB / 497 MB, free: 1.941 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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 9.993e-05/0.09541, allocations: 111.1 kB / 497.1 MB, free: 1.824 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000236/0.09566, allocations: 107.8 kB / 497.2 MB, free: 1.719 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.09567, allocations: 320 / 497.2 MB, free: 1.719 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.09579, allocations: 59.91 kB / 497.3 MB, free: 1.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.09605, allocations: 19.91 kB / 497.3 MB, free: 1.641 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003923/0.09645, allocations: 225.4 kB / 497.5 MB, free: 1.395 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002/0.09666, allocations: 0.6965 MB / 498.2 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.134e-05/0.09671, allocations: 12.88 kB / 498.2 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.275e-05/0.09675, allocations: 11.72 kB / 498.2 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of SimCode: time 2.21e-07/0.09676, allocations: 0 / 498.2 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of Templates: time 0.002865/0.09963, allocations: 0.9079 MB / 499.1 MB, free: 15.75 MB / 346.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches