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.001231/0.001231, allocations: 105 kB / 21.22 MB, free: 0.6758 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.001366/0.001366, allocations: 209.7 kB / 24.53 MB, free: 4.035 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.48/1.48, allocations: 230.5 MB / 258.2 MB, free: 8.035 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.2315/0.2315, allocations: 46.93 MB / 361.6 MB, free: 4.191 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.002418/0.002418, allocations: 83.84 kB / 0.497 GB, free: 7.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3418, allocations: 66.09 MB / 0.5615 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003068/0.3448, allocations: 1.554 MB / 0.563 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.346, allocations: 0.561 MB / 0.5636 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.669e-05/0.3461, allocations: 3.938 kB / 0.5636 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.463e-05/0.3461, allocations: 11.94 kB / 0.5636 GB, free: 2.156 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.79e-05/0.3462, allocations: 7.875 kB / 0.5636 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002688/0.3465, allocations: 47.88 kB / 0.5636 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001837/0.3467, allocations: 95.69 kB / 0.5637 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.3468, allocations: 15.98 kB / 0.5637 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.3469, allocations: 47.83 kB / 0.5638 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.818e-05/0.347, allocations: 35.84 kB / 0.5638 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.143e-05/0.347, allocations: 8 kB / 0.5638 GB, free: 1.902 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.089e-05/0.3471, allocations: 16 kB / 0.5638 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.026e-05/0.3471, allocations: 23.92 kB / 0.5639 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.742e-05/0.3472, allocations: 39.78 kB / 0.5639 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001641/0.3473, allocations: 81.61 kB / 0.564 GB, free: 1.746 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3473, allocations: 0 / 0.564 GB, free: 1.746 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3473, allocations: 0 / 0.564 GB, free: 1.746 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.3474, allocations: 4 kB / 0.564 GB, free: 1.742 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.0006904/0.348, allocations: 334 kB / 0.5643 GB, free: 1.387 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.3481, allocations: 11.97 kB / 0.5643 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.472e-05/0.3481, allocations: 42.73 kB / 0.5644 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.3483, allocations: 20.88 kB / 0.5644 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.3485, allocations: 122.5 kB / 0.5645 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.3485, allocations: 12.36 kB / 0.5645 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.099e-05/0.3486, allocations: 8.312 kB / 0.5645 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000219/0.3488, allocations: 89.77 kB / 0.5646 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.3488, allocations: 4 kB / 0.5646 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.3488, allocations: 0 / 0.5646 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.3488, allocations: 4 kB / 0.5646 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001431/0.349, allocations: 47.97 kB / 0.5647 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005393/0.3495, allocations: 303.7 kB / 0.5649 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.3497, allocations: 98.41 kB / 0.565 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.3499, allocations: 36.84 kB / 0.5651 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.3499, allocations: 7.984 kB / 0.5651 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002904/0.3502, allocations: 99.36 kB / 0.5652 GB, free: 400 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 2.314e-06/0.3502, allocations: 0 / 0.5652 GB, free: 400 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008585/0.3511, allocations: 205.6 kB / 0.5654 GB, free: 188 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.622e-05/0.3511, allocations: 55.41 kB / 0.5654 GB, free: 120 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.3513, allocations: 117.9 kB / 0.5655 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.05e-05/0.3513, allocations: 33.7 kB / 0.5656 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.3515, allocations: 100.3 kB / 0.5657 GB, free: 15.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.764e-05/0.3515, allocations: 31.95 kB / 0.5657 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.395e-05/0.3516, allocations: 37.7 kB / 0.5657 GB, free: 15.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002102/0.3518, allocations: 330.7 kB / 0.566 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.352, allocations: 43.97 kB / 0.5661 GB, free: 15.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000203/0.3522, allocations: 73.28 kB / 0.5662 GB, free: 15.31 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003462/0.3525, allocations: 123.7 kB / 0.5663 GB, free: 15.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.3526, allocations: 3.984 kB / 0.5663 GB, free: 15.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004952/0.353, allocations: 153.5 kB / 0.5664 GB, free: 15.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.3531, allocations: 8 kB / 0.5664 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.3531, allocations: 0 / 0.5664 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.79e-05/0.3531, allocations: 4 kB / 0.5664 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.3533, allocations: 35.98 kB / 0.5665 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.3533, allocations: 0 / 0.5665 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.3534, allocations: 11.95 kB / 0.5665 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.3535, allocations: 8 kB / 0.5665 GB, free: 14.95 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.0002008/0.3537, allocations: 135.7 kB / 0.5666 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.423e-05/0.3537, allocations: 7.953 kB / 0.5666 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.919e-05/0.3537, allocations: 8.438 kB / 0.5666 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.335e-06/0.3537, allocations: 7.938 kB / 0.5666 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.3538, allocations: 4 kB / 0.5666 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.3538, allocations: 3.984 kB / 0.5667 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009888/0.3548, allocations: 413.5 kB / 0.567 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.3548, allocations: 3.938 kB / 0.567 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.192e-05/0.3548, allocations: 15.92 kB / 0.5671 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.052e-06/0.3548, allocations: 0 / 0.5671 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/0.3549, allocations: 4 kB / 0.5671 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.3549, allocations: 0 / 0.5671 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.3549, allocations: 3.984 kB / 0.5671 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005101/0.3554, allocations: 255.5 kB / 0.5673 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.945e-05/0.3554, allocations: 15.88 kB / 0.5673 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.985e-05/0.3555, allocations: 4 kB / 0.5673 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.3557, allocations: 7.984 kB / 0.5673 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.474e-05/0.3557, allocations: 15.92 kB / 0.5674 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.062e-05/0.3558, allocations: 4 kB / 0.5674 GB, free: 13.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001038/0.3559, allocations: 103.2 kB / 0.5675 GB, free: 13.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3559, allocations: 0 / 0.5675 GB, free: 13.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004459/0.3563, allocations: 20 kB / 0.5675 GB, free: 13.86 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.001065/0.3574, allocations: 0.7943 MB / 0.5683 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004362/0.3578, allocations: 115.8 kB / 0.5684 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3578, allocations: 0 / 0.5684 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.358, allocations: 43.97 kB / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005096/0.3585, allocations: 21.12 kB / 0.5684 GB, free: 12.87 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003333/0.3618, allocations: 1.668 MB / 0.5701 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004778/0.3623, allocations: 0.6963 MB / 0.5707 GB, free: 10.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.216e-05/0.3624, allocations: 8.969 kB / 0.5707 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.804e-05/0.3625, allocations: 27.44 kB / 0.5708 GB, free: 10.34 MB / 414.1 MB Notification: Performance of SimCode: time 2.084e-06/0.3625, allocations: 0 / 0.5708 GB, free: 10.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0337/0.3962, allocations: 2.308 MB / 0.573 GB, free: 8.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.273/8.67, allocations: 7.875 kB / 0.573 GB, free: 8.082 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 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.463010881096125] 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.742468467913568 8.768621322 8.416427614 Calling exit ...