Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001101/0.001101, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001154/0.001154, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2289/0.2289, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 75.88 kB / 480.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.3915, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002723/0.3943, allocations: 1.545 MB / 0.532 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009217/0.3952, allocations: 0.5632 MB / 0.5326 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.49e-05/0.3953, allocations: 1.875 kB / 0.5326 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.095e-05/0.3953, allocations: 3.938 kB / 0.5326 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.511e-05/0.3954, allocations: 17.59 kB / 0.5326 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002293/0.3956, allocations: 52.78 kB / 0.5326 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001309/0.3958, allocations: 95.52 kB / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.152e-05/0.3959, allocations: 6.438 kB / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001415/0.396, allocations: 54.33 kB / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.479e-05/0.3961, allocations: 40.28 kB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.71e-05/0.3961, allocations: 9.375 kB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.672e-05/0.3962, allocations: 15.94 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.657e-05/0.3962, allocations: 19.2 kB / 0.5329 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.119e-05/0.3963, allocations: 42.03 kB / 0.5329 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001411/0.3964, allocations: 78.02 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3964, allocations: 0 / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3964, allocations: 0 / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.3965, allocations: 0 / 0.533 GB, free: 11.45 MB / 398.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.000695/0.3972, allocations: 416 kB / 0.5334 GB, free: 11.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.3972, allocations: 9.625 kB / 0.5334 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.515e-05/0.3973, allocations: 41.48 kB / 0.5334 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.3974, allocations: 14.52 kB / 0.5334 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002131/0.3976, allocations: 192.4 kB / 0.5336 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.3976, allocations: 8.5 kB / 0.5336 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.996e-05/0.3977, allocations: 13.86 kB / 0.5336 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.3979, allocations: 89.27 kB / 0.5337 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.3979, allocations: 0 / 0.5337 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.3979, allocations: 5.375 kB / 0.5337 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.3979, allocations: 1.375 kB / 0.5337 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001415/0.3981, allocations: 54.03 kB / 0.5338 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004998/0.3986, allocations: 329.6 kB / 0.5341 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002069/0.3988, allocations: 94.03 kB / 0.5342 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.977e-05/0.3989, allocations: 41.62 kB / 0.5342 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.3989, allocations: 7.047 kB / 0.5342 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001961/0.3991, allocations: 107 kB / 0.5343 GB, free: 10.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.3991, allocations: 0 / 0.5343 GB, free: 10.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004557/0.3996, allocations: 196.1 kB / 0.5345 GB, free: 10.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/0.3997, allocations: 55.72 kB / 0.5346 GB, free: 9.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.385e-05/0.3997, allocations: 123.5 kB / 0.5347 GB, free: 9.863 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/0.3998, allocations: 28.27 kB / 0.5347 GB, free: 9.832 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.162e-05/0.3998, allocations: 94.91 kB / 0.5348 GB, free: 9.734 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.487e-05/0.3999, allocations: 37.58 kB / 0.5349 GB, free: 9.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.281e-05/0.3999, allocations: 39.02 kB / 0.5349 GB, free: 9.672 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.4001, allocations: 329.2 kB / 0.5352 GB, free: 9.344 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.332e-05/0.4002, allocations: 32.73 kB / 0.5352 GB, free: 9.332 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.4003, allocations: 86.06 kB / 0.5353 GB, free: 9.262 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.4005, allocations: 115 kB / 0.5354 GB, free: 9.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.4005, allocations: 1.312 kB / 0.5354 GB, free: 9.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002894/0.4008, allocations: 164.2 kB / 0.5356 GB, free: 9.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.4008, allocations: 9.5 kB / 0.5356 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.4008, allocations: 1.375 kB / 0.5356 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.4009, allocations: 5.312 kB / 0.5356 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.401, allocations: 28.42 kB / 0.5356 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.401, allocations: 1.375 kB / 0.5356 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.234e-05/0.4011, allocations: 9.453 kB / 0.5356 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.438e-05/0.4011, allocations: 9.5 kB / 0.5356 GB, free: 9.062 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,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,$PRE.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.0001067/0.4012, allocations: 130.8 kB / 0.5358 GB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.891e-05/0.4012, allocations: 13.45 kB / 0.5358 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.977e-05/0.4013, allocations: 17.86 kB / 0.5358 GB, free: 8.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.4013, allocations: 5.312 kB / 0.5358 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.4013, allocations: 1.375 kB / 0.5358 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.4013, allocations: 0 / 0.5358 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005249/0.4018, allocations: 453.8 kB / 0.5362 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4018, allocations: 3.938 kB / 0.5362 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.213e-05/0.4019, allocations: 10.86 kB / 0.5363 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.4019, allocations: 4 kB / 0.5363 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.4019, allocations: 5.375 kB / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4019, allocations: 1.375 kB / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.4019, allocations: 0 / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003249/0.4023, allocations: 259.6 kB / 0.5365 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.109e-05/0.4023, allocations: 87.34 kB / 0.5366 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.533e-05/0.4023, allocations: 2.188 kB / 0.5366 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.4025, allocations: 17.58 kB / 0.5366 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.46e-05/0.4025, allocations: 8.297 kB / 0.5366 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.4025, allocations: 3.312 kB / 0.5366 GB, free: 8.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.047e-05/0.4026, allocations: 93.08 kB / 0.5367 GB, free: 8.098 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4026, allocations: 0 / 0.5367 GB, free: 8.098 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002449/0.4028, allocations: 22.12 kB / 0.5367 GB, free: 8.094 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.0006087/0.4034, allocations: 0.7978 MB / 0.5375 GB, free: 7.367 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002862/0.4037, allocations: 110 kB / 0.5376 GB, free: 7.324 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.4037, allocations: 0 / 0.5376 GB, free: 7.324 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001248/0.4039, allocations: 56.59 kB / 0.5377 GB, free: 7.301 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.4042, allocations: 18.91 kB / 0.5377 GB, free: 7.289 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001867/0.406, allocations: 1.66 MB / 0.5393 GB, free: 5.797 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.4063, allocations: 0.6967 MB / 0.54 GB, free: 5.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.463e-05/0.4064, allocations: 11.31 kB / 0.54 GB, free: 5.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.84e-05/0.4064, allocations: 26.12 kB / 0.54 GB, free: 5.066 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4064, allocations: 0 / 0.54 GB, free: 5.066 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0197/0.4261, allocations: 2.229 MB / 0.5422 GB, free: 3.871 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.762/8.188, allocations: 5 kB / 0.5422 GB, free: 3.867 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches