Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001777/0.001777, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002294/0.002294, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.505/1.505, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.248/0.248, allocations: 46.94 MB / 361.7 MB, free: 4.27 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+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_1_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001994/0.001994, allocations: 63.89 kB / 0.4969 GB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.3506, allocations: 66.04 MB / 0.5614 GB, free: 4.363 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00301/0.3537, allocations: 1.55 MB / 0.5629 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.3547, allocations: 0.5649 MB / 0.5635 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.272e-05/0.3548, allocations: 7.938 kB / 0.5635 GB, free: 2.223 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.33e-05/0.3548, allocations: 7.922 kB / 0.5635 GB, free: 2.215 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.392e-05/0.3549, allocations: 19.81 kB / 0.5635 GB, free: 2.195 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002357/0.3552, allocations: 47.88 kB / 0.5636 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001691/0.3553, allocations: 95.69 kB / 0.5636 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.709e-05/0.3554, allocations: 7.984 kB / 0.5637 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.3556, allocations: 43.86 kB / 0.5637 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.966e-05/0.3557, allocations: 47.81 kB / 0.5637 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.3557, allocations: 8 kB / 0.5637 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.678e-05/0.3557, allocations: 12 kB / 0.5638 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.598e-05/0.3558, allocations: 19.92 kB / 0.5638 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.959e-05/0.3558, allocations: 47.78 kB / 0.5638 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001596/0.356, allocations: 77.53 kB / 0.5639 GB, free: 1.797 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.356, allocations: 0 / 0.5639 GB, free: 1.797 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.356, allocations: 0 / 0.5639 GB, free: 1.797 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.356, allocations: 0 / 0.5639 GB, free: 1.797 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.0006947/0.3567, allocations: 338 kB / 0.5642 GB, free: 1.438 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.3567, allocations: 8.031 kB / 0.5642 GB, free: 1.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.621e-05/0.3567, allocations: 4.188 kB / 0.5642 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.39e-05/0.3568, allocations: 46.67 kB / 0.5643 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001544/0.3569, allocations: 24.81 kB / 0.5643 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002619/0.3572, allocations: 122.5 kB / 0.5644 GB, free: 1.203 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.3572, allocations: 8.375 kB / 0.5644 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.402e-05/0.3573, allocations: 12.36 kB / 0.5644 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002544/0.3575, allocations: 93.58 kB / 0.5645 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.3575, allocations: 0 / 0.5645 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.3575, allocations: 4 kB / 0.5645 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.3575, allocations: 0 / 0.5645 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001528/0.3577, allocations: 47.91 kB / 0.5646 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006036/0.3583, allocations: 311.7 kB / 0.5649 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002174/0.3585, allocations: 82.53 kB / 0.565 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.3586, allocations: 40.84 kB / 0.565 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.238e-05/0.3586, allocations: 0 / 0.565 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002265/0.3589, allocations: 107.3 kB / 0.5651 GB, free: 448 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.402e-06/0.3589, allocations: 4 kB / 0.5651 GB, free: 444 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005229/0.3594, allocations: 193.6 kB / 0.5653 GB, free: 248 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.643e-05/0.3594, allocations: 59.41 kB / 0.5653 GB, free: 176 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.3596, allocations: 125.8 kB / 0.5655 GB, free: 40 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.3596, allocations: 29.7 kB / 0.5655 GB, free: 4 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.712e-05/0.3597, allocations: 92.38 kB / 0.5656 GB, free: 15.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.98e-05/0.3597, allocations: 40.73 kB / 0.5656 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.403e-05/0.3598, allocations: 41.7 kB / 0.5657 GB, free: 15.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.36, allocations: 330.9 kB / 0.566 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.3601, allocations: 35.92 kB / 0.566 GB, free: 15.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.3602, allocations: 80.2 kB / 0.5661 GB, free: 15.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002294/0.3604, allocations: 124.2 kB / 0.5662 GB, free: 15.22 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3604, allocations: 0 / 0.5662 GB, free: 15.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000316/0.3608, allocations: 165.5 kB / 0.5664 GB, free: 15.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.3608, allocations: 4.125 kB / 0.5664 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.3608, allocations: 4 kB / 0.5664 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.3608, allocations: 7.938 kB / 0.5664 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.3609, allocations: 19.98 kB / 0.5664 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.3609, allocations: 0 / 0.5664 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.883e-05/0.361, allocations: 15.95 kB / 0.5664 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.361, allocations: 4 kB / 0.5664 GB, free: 15 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.0001284/0.3611, allocations: 131.7 kB / 0.5665 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.376e-05/0.3612, allocations: 11.94 kB / 0.5665 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.196e-05/0.3612, allocations: 12.44 kB / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3612, allocations: 11.92 kB / 0.5666 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.3612, allocations: 0 / 0.5666 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3612, allocations: 0 / 0.5666 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006237/0.3618, allocations: 417.4 kB / 0.567 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3618, allocations: 0 / 0.567 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.471e-05/0.3619, allocations: 8 kB / 0.567 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3619, allocations: 0 / 0.567 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.3619, allocations: 11.98 kB / 0.567 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3619, allocations: 4 kB / 0.567 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3619, allocations: 0 / 0.567 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003896/0.3623, allocations: 263.1 kB / 0.5672 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.604e-05/0.3623, allocations: 7.953 kB / 0.5672 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.3623, allocations: 7.984 kB / 0.5673 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.3624, allocations: 8 kB / 0.5673 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.05e-05/0.3625, allocations: 15.97 kB / 0.5673 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.3625, allocations: 8 kB / 0.5673 GB, free: 14.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.211e-05/0.3626, allocations: 95.2 kB / 0.5674 GB, free: 13.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3626, allocations: 0 / 0.5674 GB, free: 13.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002827/0.3629, allocations: 20 kB / 0.5674 GB, free: 13.91 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.0008028/0.3637, allocations: 0.7909 MB / 0.5682 GB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002912/0.364, allocations: 103.9 kB / 0.5683 GB, free: 12.99 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.364, allocations: 0 / 0.5683 GB, free: 12.99 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.3641, allocations: 59.83 kB / 0.5683 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.3644, allocations: 10.5 kB / 0.5683 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002206/0.3666, allocations: 1.675 MB / 0.57 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.367, allocations: 0.6924 MB / 0.5706 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.623e-05/0.367, allocations: 8.984 kB / 0.5707 GB, free: 10.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.747e-05/0.3671, allocations: 31.42 kB / 0.5707 GB, free: 10.38 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3671, allocations: 0 / 0.5707 GB, free: 10.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02249/0.3896, allocations: 2.46 MB / 0.5731 GB, free: 8.066 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.84, allocations: 4.062 kB / 0.5731 GB, free: 8.062 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.844840049976483] 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.00129859795561 12.019618081 11.660156918 Calling exit ...