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.001153/0.001153, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001346/0.001346, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.378/1.378, allocations: 222.9 MB / 242.4 MB, free: 15.16 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.2258/0.2258, allocations: 44.18 MB / 336.8 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001438, allocations: 67.83 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3965/0.3979, allocations: 60.82 MB / 0.5184 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002589/0.4006, allocations: 1.533 MB / 0.5199 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007363/0.4013, allocations: 491.2 kB / 0.5204 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.617e-05/0.4014, allocations: 4 kB / 0.5204 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.93e-05/0.4014, allocations: 5.438 kB / 0.5204 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.458e-05/0.4015, allocations: 14.75 kB / 0.5204 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000199/0.4017, allocations: 48.16 kB / 0.5204 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000111/0.4019, allocations: 81.81 kB / 0.5205 GB, free: 1.809 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.402, allocations: 11.75 kB / 0.5205 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.63e-05/0.4021, allocations: 46.31 kB / 0.5206 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.627e-05/0.4022, allocations: 39.61 kB / 0.5206 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.212e-05/0.4022, allocations: 11.84 kB / 0.5206 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.2e-05/0.4022, allocations: 7.656 kB / 0.5206 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.301e-05/0.4023, allocations: 14.69 kB / 0.5207 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.465e-05/0.4023, allocations: 41.97 kB / 0.5207 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001414/0.4025, allocations: 71.66 kB / 0.5208 GB, free: 1.695 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.4025, allocations: 5.062 kB / 0.5208 GB, free: 1.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4025, allocations: 0 / 0.5208 GB, free: 1.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.4025, allocations: 0 / 0.5208 GB, free: 1.691 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.0006419/0.4032, allocations: 402 kB / 0.5211 GB, free: 1.309 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.4032, allocations: 13.53 kB / 0.5212 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.419e-05/0.4033, allocations: 39.7 kB / 0.5212 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.249e-05/0.4033, allocations: 9.391 kB / 0.5212 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.4034, allocations: 170.4 kB / 0.5214 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/0.4034, allocations: 9.375 kB / 0.5214 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.013e-05/0.4035, allocations: 6.609 kB / 0.5214 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000222/0.4037, allocations: 94.41 kB / 0.5215 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.4037, allocations: 4 kB / 0.5215 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.4037, allocations: 2.328 kB / 0.5215 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.4038, allocations: 1.281 kB / 0.5215 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001315/0.4039, allocations: 44.09 kB / 0.5215 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005219/0.4044, allocations: 325.4 kB / 0.5218 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/0.4047, allocations: 96.88 kB / 0.5219 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.77e-05/0.4048, allocations: 41.64 kB / 0.522 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.4048, allocations: 2.078 kB / 0.522 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000202/0.405, allocations: 94.02 kB / 0.5221 GB, free: 0.543 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.653e-06/0.405, allocations: 5.094 kB / 0.5221 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004365/0.4055, allocations: 194 kB / 0.5222 GB, free: 468 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.4055, allocations: 61.02 kB / 0.5223 GB, free: 400 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.657e-05/0.4056, allocations: 119.1 kB / 0.5224 GB, free: 288 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.4056, allocations: 34.41 kB / 0.5225 GB, free: 252 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.124e-05/0.4057, allocations: 91.72 kB / 0.5225 GB, free: 156 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.577e-05/0.4057, allocations: 32.89 kB / 0.5226 GB, free: 132 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.088e-05/0.4058, allocations: 37.48 kB / 0.5226 GB, free: 104 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.4059, allocations: 325 kB / 0.5229 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.125e-05/0.406, allocations: 36.12 kB / 0.523 GB, free: 15.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.4061, allocations: 81.58 kB / 0.523 GB, free: 15.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002301/0.4064, allocations: 126.8 kB / 0.5232 GB, free: 15.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.4064, allocations: 3.938 kB / 0.5232 GB, free: 15.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002761/0.4067, allocations: 165.4 kB / 0.5233 GB, free: 15.53 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.4067, allocations: 6.484 kB / 0.5233 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.4067, allocations: 1.5 kB / 0.5233 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.4067, allocations: 7 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.4068, allocations: 23.67 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.4069, allocations: 2.156 kB / 0.5234 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.377e-05/0.4069, allocations: 12.89 kB / 0.5234 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.4069, allocations: 5.703 kB / 0.5234 GB, free: 15.51 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.0001068/0.4071, allocations: 130.2 kB / 0.5235 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.26e-05/0.4071, allocations: 8.719 kB / 0.5235 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.262e-05/0.4071, allocations: 14.31 kB / 0.5235 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.4071, allocations: 6.281 kB / 0.5235 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.4071, allocations: 4.656 kB / 0.5235 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.4072, allocations: 1.859 kB / 0.5235 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005468/0.4077, allocations: 443.2 kB / 0.524 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.4077, allocations: 1.906 kB / 0.524 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.686e-05/0.4078, allocations: 12.17 kB / 0.524 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.4078, allocations: 0 / 0.524 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.4078, allocations: 3.594 kB / 0.524 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4078, allocations: 1.219 kB / 0.524 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4078, allocations: 1 kB / 0.524 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003345/0.4082, allocations: 259.2 kB / 0.5242 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.901e-05/0.4082, allocations: 84.67 kB / 0.5243 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.681e-05/0.4083, allocations: 10.62 kB / 0.5243 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.4084, allocations: 7.828 kB / 0.5243 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.96e-05/0.4084, allocations: 7.922 kB / 0.5243 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.462e-05/0.4085, allocations: 9.438 kB / 0.5243 GB, free: 14.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.721e-05/0.4085, allocations: 94.83 kB / 0.5244 GB, free: 14.62 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4085, allocations: 0 / 0.5244 GB, free: 14.62 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002548/0.4088, allocations: 22.03 kB / 0.5244 GB, free: 14.62 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.0006275/0.4094, allocations: 0.7883 MB / 0.5252 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002498/0.4097, allocations: 104 kB / 0.5253 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4097, allocations: 0 / 0.5253 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.4098, allocations: 56.45 kB / 0.5254 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.4101, allocations: 12.94 kB / 0.5254 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.4122, allocations: 1.64 MB / 0.527 GB, free: 12.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.4126, allocations: 0.7003 MB / 0.5277 GB, free: 11.74 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.916e-05/0.4127, allocations: 14.95 kB / 0.5277 GB, free: 11.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.873e-05/0.4127, allocations: 28.41 kB / 0.5277 GB, free: 11.72 MB / 398.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4127, allocations: 0 / 0.5277 GB, free: 11.72 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01997/0.4327, allocations: 2.152 MB / 0.5298 GB, free: 11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.157/8.59, allocations: 29.47 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