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/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) 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 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: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 113.2 kB / 17.78 MB, free: 5.129 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.001204/0.001204, allocations: 181 kB / 18.71 MB, free: 4.207 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.424/1.424, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2298/0.2298, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 71.88 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4287/0.4306, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002592/0.4332, allocations: 1.52 MB / 0.5199 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007986/0.434, allocations: 494.7 kB / 0.5204 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.424e-05/0.4341, allocations: 0 / 0.5204 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.327e-05/0.4341, allocations: 8.625 kB / 0.5204 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.46e-05/0.4342, allocations: 19.77 kB / 0.5204 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002098/0.4345, allocations: 43.34 kB / 0.5204 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001473/0.4346, allocations: 82.55 kB / 0.5205 GB, free: 1.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.4347, allocations: 19.78 kB / 0.5205 GB, free: 1.789 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/0.4349, allocations: 40.97 kB / 0.5206 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.423e-05/0.435, allocations: 41.02 kB / 0.5206 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.5e-05/0.435, allocations: 7.656 kB / 0.5206 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.869e-05/0.435, allocations: 6.719 kB / 0.5206 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.658e-05/0.4351, allocations: 19.75 kB / 0.5207 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.861e-05/0.4351, allocations: 42.02 kB / 0.5207 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001561/0.4353, allocations: 76.31 kB / 0.5208 GB, free: 1.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.4353, allocations: 0.8438 kB / 0.5208 GB, free: 1.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4353, allocations: 0 / 0.5208 GB, free: 1.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.4353, allocations: 1.031 kB / 0.5208 GB, free: 1.68 MB / 382.1 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.0006347/0.436, allocations: 400.1 kB / 0.5211 GB, free: 1.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.436, allocations: 17.78 kB / 0.5212 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.723e-05/0.436, allocations: 34.91 kB / 0.5212 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.44e-05/0.4361, allocations: 10.2 kB / 0.5212 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.4362, allocations: 174.9 kB / 0.5214 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.4362, allocations: 4.391 kB / 0.5214 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.4363, allocations: 5.875 kB / 0.5214 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.4365, allocations: 95.61 kB / 0.5215 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.4365, allocations: 0 / 0.5215 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.4365, allocations: 6.375 kB / 0.5215 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.4365, allocations: 1.062 kB / 0.5215 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.4367, allocations: 43.45 kB / 0.5215 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000492/0.4371, allocations: 326.5 kB / 0.5218 GB, free: 0.668 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002084/0.4374, allocations: 91.83 kB / 0.5219 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.604e-05/0.4375, allocations: 42 kB / 0.522 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/0.4375, allocations: 6.375 kB / 0.522 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002198/0.4377, allocations: 97.84 kB / 0.5221 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.4377, allocations: 0 / 0.5221 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004497/0.4382, allocations: 195.2 kB / 0.5222 GB, free: 456 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.4382, allocations: 56.38 kB / 0.5223 GB, free: 392 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.24e-05/0.4383, allocations: 125.2 kB / 0.5224 GB, free: 276 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.4384, allocations: 36.73 kB / 0.5225 GB, free: 236 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.242e-05/0.4384, allocations: 91.61 kB / 0.5225 GB, free: 140 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.536e-05/0.4384, allocations: 37.89 kB / 0.5226 GB, free: 112 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.975e-05/0.4385, allocations: 36.72 kB / 0.5226 GB, free: 84 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4387, allocations: 325.6 kB / 0.5229 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.222e-05/0.4388, allocations: 31.88 kB / 0.523 GB, free: 15.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.4389, allocations: 84.59 kB / 0.523 GB, free: 15.69 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002277/0.4391, allocations: 123.6 kB / 0.5232 GB, free: 15.6 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.4391, allocations: 4 kB / 0.5232 GB, free: 15.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002991/0.4394, allocations: 158.2 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.4395, allocations: 6.031 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.4395, allocations: 1.312 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.4395, allocations: 6.594 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.4396, allocations: 18.09 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.4396, allocations: 6.797 kB / 0.5233 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.833e-05/0.4397, allocations: 17.81 kB / 0.5234 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.4397, allocations: 9.453 kB / 0.5234 GB, free: 15.5 MB / 398.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: 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 0.0001357/0.4399, allocations: 129.7 kB / 0.5235 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.31e-05/0.4399, allocations: 9.688 kB / 0.5235 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.42e-05/0.4399, allocations: 14.3 kB / 0.5235 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.44, allocations: 6.75 kB / 0.5235 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.44, allocations: 0 / 0.5235 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.44, allocations: 0.7031 kB / 0.5235 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006436/0.4406, allocations: 453 kB / 0.524 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.4406, allocations: 0 / 0.524 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.263e-05/0.4407, allocations: 8.906 kB / 0.524 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.4407, allocations: 1.781 kB / 0.524 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.4407, allocations: 2.234 kB / 0.524 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.4407, allocations: 1.25 kB / 0.524 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4407, allocations: 0.6094 kB / 0.524 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003638/0.4411, allocations: 260 kB / 0.5242 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.484e-05/0.4412, allocations: 83.45 kB / 0.5243 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.794e-05/0.4412, allocations: 7.562 kB / 0.5243 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.4413, allocations: 8.141 kB / 0.5243 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.908e-05/0.4414, allocations: 6.531 kB / 0.5243 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.401e-05/0.4414, allocations: 9.578 kB / 0.5243 GB, free: 14.69 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.135e-05/0.4415, allocations: 95.05 kB / 0.5244 GB, free: 14.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4415, allocations: 0 / 0.5244 GB, free: 14.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002478/0.4417, allocations: 22.14 kB / 0.5244 GB, free: 14.61 MB / 398.1 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 0.0007113/0.4425, allocations: 0.7944 MB / 0.5252 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002673/0.4427, allocations: 100.8 kB / 0.5253 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.4428, allocations: 2.219 kB / 0.5253 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.4429, allocations: 56.45 kB / 0.5254 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002703/0.4432, allocations: 15.05 kB / 0.5254 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.4452, allocations: 1.637 MB / 0.527 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003817/0.4456, allocations: 0.6955 MB / 0.5277 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.085e-05/0.4457, allocations: 14.72 kB / 0.5277 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.284e-05/0.4458, allocations: 27.23 kB / 0.5277 GB, free: 11.71 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.4458, allocations: 1.375 kB / 0.5277 GB, free: 11.71 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02522/0.471, allocations: 2.164 MB / 0.5298 GB, free: 10.99 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.853/8.324, allocations: 6.375 kB / 0.5298 GB, free: 10.98 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches