Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.conf.json 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) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) 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_4.0.0_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_4.0.0_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 186.9 kB / 17.97 MB, free: 3.793 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009418/0.0009418, allocations: 102.3 kB / 291.8 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4034/0.4034, allocations: 44.14 MB / 386.1 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 55.92 kB / 457.7 MB, free: 2.312 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3869/0.388, allocations: 60.8 MB / 0.5064 GB, free: 38.29 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003139/0.3912, allocations: 1.584 MB / 0.5079 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009674/0.3922, allocations: 495.7 kB / 0.5084 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.061e-05/0.3923, allocations: 1.031 kB / 0.5084 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 5.473e-05/0.3924, allocations: 3.938 kB / 0.5084 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.3925, allocations: 9.406 kB / 0.5084 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002151/0.3927, allocations: 32.17 kB / 0.5085 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001468/0.3929, allocations: 85.97 kB / 0.5085 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.393, allocations: 17.7 kB / 0.5085 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.3932, allocations: 33.47 kB / 0.5086 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.597e-05/0.3933, allocations: 41.33 kB / 0.5086 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.566e-05/0.3933, allocations: 6.406 kB / 0.5086 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.889e-05/0.3933, allocations: 2.906 kB / 0.5086 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.358e-05/0.3934, allocations: 18.14 kB / 0.5086 GB, free: 36.74 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.19e-05/0.3935, allocations: 38.42 kB / 0.5087 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001263/0.3936, allocations: 66.34 kB / 0.5087 GB, free: 36.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3936, allocations: 0 / 0.5087 GB, free: 36.69 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3936, allocations: 0 / 0.5087 GB, free: 36.69 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.3936, allocations: 4 kB / 0.5088 GB, free: 36.69 MB / 378.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.0006966/0.3943, allocations: 403.2 kB / 0.5091 GB, free: 36.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.3944, allocations: 8.938 kB / 0.5091 GB, free: 36.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.532e-05/0.3945, allocations: 10.94 kB / 0.5092 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.3946, allocations: 174.9 kB / 0.5093 GB, free: 36.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/0.3946, allocations: 7.406 kB / 0.5093 GB, free: 36.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.078e-05/0.3946, allocations: 10.5 kB / 0.5093 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002189/0.3949, allocations: 93.28 kB / 0.5094 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.3949, allocations: 0 / 0.5094 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.3949, allocations: 0 / 0.5094 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.3949, allocations: 2.906 kB / 0.5094 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001392/0.3951, allocations: 46.91 kB / 0.5095 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006137/0.3957, allocations: 328 kB / 0.5098 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.3959, allocations: 93.33 kB / 0.5099 GB, free: 35.67 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.389e-05/0.396, allocations: 44.41 kB / 0.5099 GB, free: 35.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.573e-05/0.396, allocations: 3.938 kB / 0.5099 GB, free: 35.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002277/0.3962, allocations: 103.2 kB / 0.51 GB, free: 35.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.3962, allocations: 4 kB / 0.51 GB, free: 35.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004153/0.3967, allocations: 188.9 kB / 0.5102 GB, free: 35.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.3967, allocations: 58.12 kB / 0.5103 GB, free: 35.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.797e-05/0.3968, allocations: 118.9 kB / 0.5104 GB, free: 35.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.3968, allocations: 32.77 kB / 0.5104 GB, free: 35.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.115e-05/0.3969, allocations: 90.69 kB / 0.5105 GB, free: 35.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.317e-05/0.3969, allocations: 37.73 kB / 0.5105 GB, free: 35.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-05/0.397, allocations: 39.86 kB / 0.5106 GB, free: 35.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.047e-05/0.397, allocations: 329.1 kB / 0.5109 GB, free: 34.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.301e-05/0.3971, allocations: 28.59 kB / 0.5109 GB, free: 34.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.627e-05/0.3972, allocations: 79.03 kB / 0.511 GB, free: 34.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001776/0.3974, allocations: 120.4 kB / 0.5111 GB, free: 34.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3974, allocations: 4 kB / 0.5111 GB, free: 34.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002391/0.3976, allocations: 159.1 kB / 0.5113 GB, free: 34.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.3977, allocations: 11.53 kB / 0.5113 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.3977, allocations: 2.906 kB / 0.5113 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.3977, allocations: 6.969 kB / 0.5113 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.3978, allocations: 22.48 kB / 0.5113 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.3978, allocations: 0 / 0.5113 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.81e-05/0.3979, allocations: 16.97 kB / 0.5113 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.3979, allocations: 5.844 kB / 0.5113 GB, free: 34.56 MB / 378.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 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * 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.29e-05/0.398, allocations: 128.8 kB / 0.5114 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.543e-05/0.398, allocations: 6.656 kB / 0.5114 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.932e-05/0.3981, allocations: 18.8 kB / 0.5115 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3981, allocations: 3.938 kB / 0.5115 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.3981, allocations: 0 / 0.5115 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.259e-06/0.3981, allocations: 2.844 kB / 0.5115 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004367/0.3986, allocations: 441 kB / 0.5119 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3986, allocations: 6.844 kB / 0.5119 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.801e-05/0.3986, allocations: 9.109 kB / 0.5119 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3986, allocations: 4 kB / 0.5119 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.3986, allocations: 384 / 0.5119 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.3987, allocations: 6.25 kB / 0.5119 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3987, allocations: 0 / 0.5119 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004843/0.3992, allocations: 0.8433 MB / 0.5127 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.321e-05/0.3992, allocations: 87.7 kB / 0.5128 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.342e-05/0.3992, allocations: 10.95 kB / 0.5128 GB, free: 33.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.963e-05/0.3993, allocations: 10.25 kB / 0.5128 GB, free: 33.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.708e-05/0.3994, allocations: 9.156 kB / 0.5129 GB, free: 33.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.932e-05/0.3994, allocations: 9.906 kB / 0.5129 GB, free: 33.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.289e-05/0.3994, allocations: 95.41 kB / 0.513 GB, free: 33.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3994, allocations: 0 / 0.513 GB, free: 33.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000326/0.3998, allocations: 25.62 kB / 0.513 GB, free: 33.06 MB / 378.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.437e-05/0.3999, allocations: 102.2 kB / 0.5131 GB, free: 32.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000213/0.4001, allocations: 108.2 kB / 0.5132 GB, free: 32.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4001, allocations: 0 / 0.5132 GB, free: 32.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.819e-05/0.4002, allocations: 55.55 kB / 0.5132 GB, free: 32.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.4005, allocations: 13.42 kB / 0.5132 GB, free: 32.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004494/0.4009, allocations: 366.8 kB / 0.5136 GB, free: 32.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001341/0.4011, allocations: 0.6914 MB / 0.5143 GB, free: 31.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.075e-05/0.4011, allocations: 11.84 kB / 0.5143 GB, free: 31.92 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.943e-05/0.4012, allocations: 27.56 kB / 0.5143 GB, free: 31.9 MB / 378.7 MB Notification: Performance of SimCode: time 9.52e-07/0.4012, allocations: 2.781 kB / 0.5143 GB, free: 31.9 MB / 378.7 MB Notification: Performance of Templates: time 0.002852/0.404, allocations: 0.9607 MB / 0.5152 GB, free: 31.8 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches