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.001185/0.001185, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, 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.2266/0.2266, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 75.89 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.3913, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003495/0.3949, allocations: 1.542 MB / 0.532 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.3962, allocations: 0.5556 MB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.2e-05/0.3963, allocations: 4 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.892e-05/0.3963, allocations: 15.48 kB / 0.5326 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001464/0.3965, allocations: 11.86 kB / 0.5326 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003059/0.3968, allocations: 53.31 kB / 0.5326 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001635/0.397, allocations: 87.48 kB / 0.5327 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.3971, allocations: 15.45 kB / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.3973, allocations: 44.34 kB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.646e-05/0.3974, allocations: 44.2 kB / 0.5328 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.3974, allocations: 6.875 kB / 0.5328 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.612e-05/0.3975, allocations: 14.81 kB / 0.5328 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.025e-05/0.3975, allocations: 22.56 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.348e-05/0.3976, allocations: 38.2 kB / 0.5329 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001961/0.3978, allocations: 80.23 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3978, allocations: 0.9375 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3978, allocations: 0 / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.3978, allocations: 0 / 0.533 GB, free: 11.46 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.000753/0.3986, allocations: 414 kB / 0.5334 GB, free: 11.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.902e-05/0.3987, allocations: 8.75 kB / 0.5334 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.714e-05/0.3987, allocations: 45.17 kB / 0.5334 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001655/0.3989, allocations: 19.38 kB / 0.5334 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/0.3992, allocations: 187.7 kB / 0.5336 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.417e-05/0.3992, allocations: 8.5 kB / 0.5336 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.3993, allocations: 9.406 kB / 0.5336 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002441/0.3995, allocations: 97.83 kB / 0.5337 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.3995, allocations: 0 / 0.5337 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.3995, allocations: 1.25 kB / 0.5337 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.3996, allocations: 1.219 kB / 0.5337 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001657/0.3997, allocations: 53.64 kB / 0.5338 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006401/0.4004, allocations: 337.7 kB / 0.5341 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002355/0.4006, allocations: 93.7 kB / 0.5342 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.4007, allocations: 46.92 kB / 0.5342 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.4008, allocations: 1.5 kB / 0.5342 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001997/0.401, allocations: 96.23 kB / 0.5343 GB, free: 10.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.401, allocations: 4 kB / 0.5343 GB, free: 10.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004974/0.4015, allocations: 200.3 kB / 0.5345 GB, free: 10.05 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/0.4016, allocations: 58.73 kB / 0.5346 GB, free: 9.984 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.691e-05/0.4017, allocations: 116 kB / 0.5347 GB, free: 9.875 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.4017, allocations: 32.64 kB / 0.5347 GB, free: 9.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.213e-05/0.4018, allocations: 98.48 kB / 0.5348 GB, free: 9.738 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.284e-05/0.4018, allocations: 38.12 kB / 0.5349 GB, free: 9.707 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.197e-05/0.4019, allocations: 38.09 kB / 0.5349 GB, free: 9.676 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.402, allocations: 329.5 kB / 0.5352 GB, free: 9.348 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.554e-05/0.4021, allocations: 40.59 kB / 0.5352 GB, free: 9.328 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.4023, allocations: 75.14 kB / 0.5353 GB, free: 9.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002084/0.4025, allocations: 123.1 kB / 0.5354 GB, free: 9.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.4025, allocations: 0 / 0.5354 GB, free: 9.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002955/0.4028, allocations: 156 kB / 0.5356 GB, free: 9.098 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.4028, allocations: 5.625 kB / 0.5356 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.4028, allocations: 9.312 kB / 0.5356 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.4028, allocations: 2.75 kB / 0.5356 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.403, allocations: 26.98 kB / 0.5356 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.403, allocations: 2.75 kB / 0.5356 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.52e-05/0.4031, allocations: 16.06 kB / 0.5356 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.4031, allocations: 5.5 kB / 0.5356 GB, free: 9.066 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.0001077/0.4032, allocations: 128.3 kB / 0.5358 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.021e-05/0.4032, allocations: 8.078 kB / 0.5358 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.511e-05/0.4033, allocations: 23.17 kB / 0.5358 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.4033, allocations: 5.312 kB / 0.5358 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.4033, allocations: 0 / 0.5358 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.4033, allocations: 0 / 0.5358 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005801/0.4039, allocations: 450.2 kB / 0.5362 GB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.4039, allocations: 3.938 kB / 0.5362 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.645e-05/0.404, allocations: 10.62 kB / 0.5362 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.404, allocations: 1.031 kB / 0.5362 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.404, allocations: 13.11 kB / 0.5363 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.404, allocations: 1.188 kB / 0.5363 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.404, allocations: 3.984 kB / 0.5363 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003687/0.4044, allocations: 255 kB / 0.5365 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.905e-05/0.4044, allocations: 87.94 kB / 0.5366 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.4045, allocations: 2 kB / 0.5366 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.4046, allocations: 14.02 kB / 0.5366 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.357e-05/0.4047, allocations: 16.44 kB / 0.5366 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.4047, allocations: 3.906 kB / 0.5366 GB, free: 8.184 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.921e-05/0.4048, allocations: 92.42 kB / 0.5367 GB, free: 8.102 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4048, allocations: 0 / 0.5367 GB, free: 8.102 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002539/0.405, allocations: 22 kB / 0.5367 GB, free: 8.098 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.0006661/0.4057, allocations: 0.7941 MB / 0.5375 GB, free: 7.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003058/0.406, allocations: 113.3 kB / 0.5376 GB, free: 7.328 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.406, allocations: 9.031 kB / 0.5376 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.4062, allocations: 51.98 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.0002788/0.4064, allocations: 19.78 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.001854/0.4083, allocations: 1.654 MB / 0.5393 GB, free: 5.801 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.4086, allocations: 0.6928 MB / 0.54 GB, free: 5.098 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.605e-05/0.4087, allocations: 11 kB / 0.54 GB, free: 5.094 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.034e-05/0.4087, allocations: 29.64 kB / 0.54 GB, free: 5.07 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4087, allocations: 1.281 kB / 0.54 GB, free: 5.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02125/0.43, allocations: 2.233 MB / 0.5422 GB, free: 3.871 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.561/7.991, allocations: 11.78 kB / 0.5422 GB, free: 3.863 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