Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002174/0.002174, allocations: 109.4 kB / 19.8 MB, free: 2.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002754/0.002754, allocations: 221.3 kB / 23 MB, free: 5.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 230.2 MB / 256.2 MB, free: 8.531 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2473/0.2473, allocations: 46.89 MB / 359.4 MB, free: 4.902 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002296/0.002296, allocations: 91.84 kB / 0.4941 GB, free: 9.012 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3536, allocations: 65.98 MB / 0.5586 GB, free: 5.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002865/0.3565, allocations: 1.557 MB / 0.5601 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.3576, allocations: 0.5649 MB / 0.5606 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.623e-05/0.3576, allocations: 0 / 0.5606 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.904e-05/0.3576, allocations: 7.875 kB / 0.5606 GB, free: 3.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.807e-05/0.3577, allocations: 15.84 kB / 0.5607 GB, free: 3.004 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002445/0.358, allocations: 55.88 kB / 0.5607 GB, free: 2.949 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000155/0.3581, allocations: 87.7 kB / 0.5608 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.3582, allocations: 12 kB / 0.5608 GB, free: 2.852 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.3584, allocations: 51.83 kB / 0.5609 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.671e-05/0.3585, allocations: 39.83 kB / 0.5609 GB, free: 2.762 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.068e-05/0.3585, allocations: 11.94 kB / 0.5609 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.885e-05/0.3586, allocations: 12 kB / 0.5609 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.766e-05/0.3586, allocations: 19.97 kB / 0.5609 GB, free: 2.719 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.4e-05/0.3586, allocations: 35.8 kB / 0.561 GB, free: 2.684 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.3588, allocations: 85.47 kB / 0.561 GB, free: 2.602 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3588, allocations: 3.938 kB / 0.5611 GB, free: 2.598 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3588, allocations: 0 / 0.5611 GB, free: 2.598 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.89e-06/0.3588, allocations: 0 / 0.5611 GB, free: 2.598 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.0007691/0.3596, allocations: 413.5 kB / 0.5614 GB, free: 2.148 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.3596, allocations: 12.03 kB / 0.5615 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.442e-05/0.3597, allocations: 38.73 kB / 0.5615 GB, free: 2.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.3598, allocations: 20.88 kB / 0.5615 GB, free: 2.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.3601, allocations: 188.3 kB / 0.5617 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.3601, allocations: 12.38 kB / 0.5617 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.398e-05/0.3601, allocations: 4.375 kB / 0.5617 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002406/0.3604, allocations: 97.08 kB / 0.5618 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.3604, allocations: 0 / 0.5618 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.3604, allocations: 0 / 0.5618 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.3604, allocations: 4 kB / 0.5618 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001525/0.3606, allocations: 47.97 kB / 0.5619 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00062/0.3612, allocations: 336.6 kB / 0.5622 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002351/0.3614, allocations: 86.48 kB / 0.5623 GB, free: 1.211 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.3615, allocations: 40.83 kB / 0.5623 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.3616, allocations: 4 kB / 0.5623 GB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002334/0.3618, allocations: 99.36 kB / 0.5624 GB, free: 1.055 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.3618, allocations: 0 / 0.5624 GB, free: 1.055 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005034/0.3623, allocations: 189.7 kB / 0.5626 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.3624, allocations: 71.31 kB / 0.5626 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.3625, allocations: 118 kB / 0.5628 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.3625, allocations: 33.7 kB / 0.5628 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.849e-05/0.3626, allocations: 96.36 kB / 0.5629 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.781e-05/0.3626, allocations: 39.73 kB / 0.5629 GB, free: 488 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.86e-05/0.3627, allocations: 33.72 kB / 0.5629 GB, free: 448 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.3629, allocations: 334.7 kB / 0.5633 GB, free: 104 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.363, allocations: 35.97 kB / 0.5633 GB, free: 68 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.3631, allocations: 77.28 kB / 0.5634 GB, free: 15.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/0.3633, allocations: 127.7 kB / 0.5635 GB, free: 15.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3633, allocations: 0 / 0.5635 GB, free: 15.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003078/0.3636, allocations: 153.5 kB / 0.5636 GB, free: 15.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.3637, allocations: 8 kB / 0.5637 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.3637, allocations: 3.984 kB / 0.5637 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.3637, allocations: 4 kB / 0.5637 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.3638, allocations: 27.92 kB / 0.5637 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.3638, allocations: 3.938 kB / 0.5637 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.326e-05/0.3639, allocations: 11.94 kB / 0.5637 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.3639, allocations: 12 kB / 0.5637 GB, free: 15.61 MB / 414.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.0001414/0.364, allocations: 136.1 kB / 0.5638 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.082e-05/0.3641, allocations: 7.953 kB / 0.5638 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.258e-05/0.3641, allocations: 8.5 kB / 0.5639 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3641, allocations: 7.938 kB / 0.5639 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.3641, allocations: 7.984 kB / 0.5639 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.3641, allocations: 0 / 0.5639 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000633/0.3648, allocations: 442.4 kB / 0.5643 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.3648, allocations: 7.922 kB / 0.5643 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.579e-05/0.3648, allocations: 16 kB / 0.5643 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3648, allocations: 0 / 0.5643 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.3648, allocations: 0 / 0.5643 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.554e-06/0.3648, allocations: 11.92 kB / 0.5643 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3648, allocations: 0 / 0.5643 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003838/0.3652, allocations: 251.5 kB / 0.5646 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.635e-05/0.3653, allocations: 85 kB / 0.5646 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.902e-05/0.3653, allocations: 15.94 kB / 0.5647 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.3654, allocations: 7.984 kB / 0.5647 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.75e-05/0.3655, allocations: 7.984 kB / 0.5647 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.282e-05/0.3655, allocations: 8 kB / 0.5647 GB, free: 14.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.608e-05/0.3656, allocations: 99.64 kB / 0.5648 GB, free: 14.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3656, allocations: 0 / 0.5648 GB, free: 14.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002528/0.3658, allocations: 20 kB / 0.5648 GB, free: 14.39 MB / 414.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.000817/0.3667, allocations: 0.7947 MB / 0.5656 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003022/0.367, allocations: 107.9 kB / 0.5657 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.367, allocations: 0 / 0.5657 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.3671, allocations: 51.86 kB / 0.5657 GB, free: 13.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/0.3674, allocations: 18.89 kB / 0.5657 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002227/0.3696, allocations: 1.667 MB / 0.5674 GB, free: 11.63 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004159/0.37, allocations: 0.6924 MB / 0.5681 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.713e-05/0.3701, allocations: 16.86 kB / 0.5681 GB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.087e-05/0.3702, allocations: 23.42 kB / 0.5681 GB, free: 10.87 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3702, allocations: 0 / 0.5681 GB, free: 10.87 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02679/0.397, allocations: 2.239 MB / 0.5703 GB, free: 8.691 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.226/8.623, allocations: 8.047 kB / 0.5703 GB, free: 8.684 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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.000396747 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.474654465011554] 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'] 8.696448906994192 8.721363501 8.358175019 Calling exit ...