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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001794/0.001794, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002203/0.002203, allocations: 211.9 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.578/1.578, allocations: 230.6 MB / 258.3 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2506/0.2506, allocations: 44.93 MB / 359.6 MB, free: 6.074 MB / 286.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00206/0.00206, allocations: 67.89 kB / 0.4938 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.3864, allocations: 65.46 MB / 0.5577 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002912/0.3893, allocations: 1.532 MB / 0.5592 GB, free: 6.031 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.3904, allocations: 0.5143 MB / 0.5597 GB, free: 5.512 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.806e-05/0.3905, allocations: 0 / 0.5597 GB, free: 5.512 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.814e-05/0.3905, allocations: 15.86 kB / 0.5597 GB, free: 5.496 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.605e-05/0.3906, allocations: 15.88 kB / 0.5597 GB, free: 5.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002527/0.3909, allocations: 47.88 kB / 0.5598 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001664/0.391, allocations: 99.69 kB / 0.5599 GB, free: 5.336 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.966e-05/0.3911, allocations: 7.984 kB / 0.5599 GB, free: 5.328 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.3913, allocations: 39.86 kB / 0.5599 GB, free: 5.289 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.169e-05/0.3914, allocations: 47.81 kB / 0.56 GB, free: 5.242 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.52e-05/0.3914, allocations: 8 kB / 0.56 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.912e-05/0.3915, allocations: 12 kB / 0.56 GB, free: 5.223 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.112e-05/0.3915, allocations: 19.92 kB / 0.56 GB, free: 5.203 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.648e-05/0.3916, allocations: 39.84 kB / 0.56 GB, free: 5.164 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001853/0.3917, allocations: 89.41 kB / 0.5601 GB, free: 5.078 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3918, allocations: 0 / 0.5601 GB, free: 5.078 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.3918, allocations: 0 / 0.5601 GB, free: 5.078 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.3918, allocations: 0 / 0.5601 GB, free: 5.078 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.000717/0.3925, allocations: 330 kB / 0.5604 GB, free: 4.727 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.3925, allocations: 12.03 kB / 0.5605 GB, free: 4.715 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.161e-05/0.3925, allocations: 4.188 kB / 0.5605 GB, free: 4.711 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.102e-05/0.3926, allocations: 42.73 kB / 0.5605 GB, free: 4.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001635/0.3927, allocations: 20.88 kB / 0.5605 GB, free: 4.641 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002424/0.393, allocations: 122.5 kB / 0.5606 GB, free: 4.496 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.393, allocations: 8.375 kB / 0.5606 GB, free: 4.488 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.484e-05/0.393, allocations: 12.36 kB / 0.5607 GB, free: 4.477 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002452/0.3933, allocations: 101.4 kB / 0.5608 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.3933, allocations: 0 / 0.5608 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.3933, allocations: 0 / 0.5608 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/0.3933, allocations: 4 kB / 0.5608 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001493/0.3935, allocations: 47.97 kB / 0.5608 GB, free: 4.324 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005839/0.3941, allocations: 291.7 kB / 0.5611 GB, free: 3.996 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002385/0.3943, allocations: 90.47 kB / 0.5612 GB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.3944, allocations: 36.84 kB / 0.5612 GB, free: 3.859 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.3944, allocations: 4 kB / 0.5612 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.3946, allocations: 107.3 kB / 0.5613 GB, free: 3.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.763e-06/0.3946, allocations: 4.219 kB / 0.5613 GB, free: 3.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005252/0.3952, allocations: 193.7 kB / 0.5615 GB, free: 3.539 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.87e-05/0.3952, allocations: 63.28 kB / 0.5616 GB, free: 3.465 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.3954, allocations: 121.8 kB / 0.5617 GB, free: 3.336 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.795e-05/0.3954, allocations: 29.7 kB / 0.5617 GB, free: 3.301 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.627e-05/0.3955, allocations: 96.38 kB / 0.5618 GB, free: 3.199 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.554e-05/0.3955, allocations: 36.73 kB / 0.5618 GB, free: 3.164 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.808e-05/0.3956, allocations: 41.7 kB / 0.5619 GB, free: 3.117 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.3957, allocations: 326.8 kB / 0.5622 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.3958, allocations: 39.98 kB / 0.5622 GB, free: 2.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.396, allocations: 79.25 kB / 0.5623 GB, free: 2.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.3962, allocations: 116.2 kB / 0.5624 GB, free: 2.531 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.3962, allocations: 0 / 0.5624 GB, free: 2.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003122/0.3965, allocations: 166 kB / 0.5626 GB, free: 2.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.3965, allocations: 8 kB / 0.5626 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.3965, allocations: 0 / 0.5626 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.3966, allocations: 7.938 kB / 0.5626 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.3967, allocations: 23.92 kB / 0.5626 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.3967, allocations: 0 / 0.5626 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.836e-05/0.3968, allocations: 11.95 kB / 0.5626 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.3968, allocations: 8 kB / 0.5626 GB, free: 2.305 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.0001225/0.3969, allocations: 135.9 kB / 0.5628 GB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.566e-05/0.3969, allocations: 7.953 kB / 0.5628 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.388e-05/0.397, allocations: 8.438 kB / 0.5628 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.397, allocations: 7.938 kB / 0.5628 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.397, allocations: 0 / 0.5628 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.397, allocations: 3.938 kB / 0.5628 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000645/0.3976, allocations: 413.1 kB / 0.5632 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3976, allocations: 0 / 0.5632 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.748e-05/0.3977, allocations: 11.94 kB / 0.5632 GB, free: 1.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.3977, allocations: 4 kB / 0.5632 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.3977, allocations: 7.984 kB / 0.5632 GB, free: 1.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3977, allocations: 3.938 kB / 0.5632 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3977, allocations: 0 / 0.5632 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003956/0.3981, allocations: 267.4 kB / 0.5635 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.6e-05/0.3981, allocations: 7.953 kB / 0.5635 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.753e-05/0.3982, allocations: 4 kB / 0.5635 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.3983, allocations: 15.92 kB / 0.5635 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.056e-05/0.3983, allocations: 7.984 kB / 0.5635 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.3983, allocations: 11.98 kB / 0.5635 GB, free: 1.328 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.245e-05/0.3984, allocations: 91.28 kB / 0.5636 GB, free: 1.238 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3984, allocations: 0 / 0.5636 GB, free: 1.238 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000272/0.3987, allocations: 27.98 kB / 0.5636 GB, free: 1.211 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.0007329/0.3994, allocations: 0.7948 MB / 0.5644 GB, free: 400 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002895/0.3997, allocations: 103.9 kB / 0.5645 GB, free: 296 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.3997, allocations: 256 / 0.5645 GB, free: 296 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.3998, allocations: 59.89 kB / 0.5645 GB, free: 236 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/0.4001, allocations: 19.72 kB / 0.5646 GB, free: 220 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.4022, allocations: 1.662 MB / 0.5662 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.393e-05/0.4023, allocations: 91.31 kB / 0.5663 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.909e-05/0.4023, allocations: 4.984 kB / 0.5663 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.834e-05/0.4024, allocations: 31.42 kB / 0.5663 GB, free: 14.3 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4024, allocations: 0 / 0.5663 GB, free: 14.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02263/0.425, allocations: 2.502 MB / 0.5688 GB, free: 11.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.04, allocations: 3.938 kB / 0.5688 GB, free: 11.94 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.14511650102213] Failed to read output from testmodel.py, exit status != 0: ['time', 'firstOrderHold.c', 'firstOrderHold.firstTrigger', 'firstOrderHold.pre_uSample', 'firstOrderHold.tSample', 'firstOrderHold.uSample', 'zeroOrderHold.firstTrigger', 'zeroOrderHold.ySample'] 12.198526585008949 12.213909214 11.818871514 Calling exit ...