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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001458/0.001458, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.00157/0.00157, allocations: 216.9 kB / 24.53 MB, free: 4.012 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.339/1.339, allocations: 230.5 MB / 258.2 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2069/0.2069, allocations: 46.92 MB / 361.6 MB, free: 4.195 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002126/0.002126, allocations: 79.88 kB / 0.497 GB, free: 7.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2787, allocations: 66.08 MB / 0.5615 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002716/0.2814, allocations: 1.554 MB / 0.563 GB, free: 2.746 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009418/0.2824, allocations: 0.5688 MB / 0.5636 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.099e-05/0.2824, allocations: 3.938 kB / 0.5636 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.932e-05/0.2825, allocations: 7.922 kB / 0.5636 GB, free: 2.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.235e-05/0.2825, allocations: 11.86 kB / 0.5636 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002171/0.2827, allocations: 59.88 kB / 0.5636 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001368/0.2829, allocations: 87.7 kB / 0.5637 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.763e-05/0.283, allocations: 11.98 kB / 0.5637 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001383/0.2831, allocations: 47.84 kB / 0.5638 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.499e-05/0.2832, allocations: 43.83 kB / 0.5638 GB, free: 1.902 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.987e-05/0.2832, allocations: 8 kB / 0.5638 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.016e-05/0.2833, allocations: 8 kB / 0.5638 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.851e-05/0.2833, allocations: 27.84 kB / 0.5639 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.952e-05/0.2833, allocations: 35.8 kB / 0.5639 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.2835, allocations: 81.53 kB / 0.564 GB, free: 1.746 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.2835, allocations: 8 kB / 0.564 GB, free: 1.738 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2835, allocations: 0 / 0.564 GB, free: 1.738 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.2835, allocations: 0 / 0.564 GB, free: 1.738 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.0006203/0.2841, allocations: 334 kB / 0.5643 GB, free: 1.383 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.2841, allocations: 8.031 kB / 0.5643 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.137e-05/0.2842, allocations: 192 / 0.5643 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.72e-05/0.2842, allocations: 46.67 kB / 0.5644 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.2843, allocations: 20.88 kB / 0.5644 GB, free: 1.301 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002044/0.2845, allocations: 134.4 kB / 0.5645 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.2845, allocations: 4.375 kB / 0.5645 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.2e-05/0.2846, allocations: 12.36 kB / 0.5645 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002066/0.2848, allocations: 85.58 kB / 0.5646 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.2848, allocations: 0 / 0.5646 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.2848, allocations: 4 kB / 0.5646 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.2848, allocations: 11.94 kB / 0.5646 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001506/0.285, allocations: 47.97 kB / 0.5647 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004998/0.2855, allocations: 303.7 kB / 0.565 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000205/0.2857, allocations: 86.53 kB / 0.565 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.605e-05/0.2858, allocations: 36.84 kB / 0.5651 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.2858, allocations: 4 kB / 0.5651 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001869/0.286, allocations: 103.3 kB / 0.5652 GB, free: 396 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.286, allocations: 0 / 0.5652 GB, free: 396 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004559/0.2864, allocations: 201 kB / 0.5654 GB, free: 192 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.2865, allocations: 59.39 kB / 0.5654 GB, free: 120 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.2866, allocations: 121.8 kB / 0.5655 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.2866, allocations: 33.7 kB / 0.5656 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.724e-05/0.2867, allocations: 96.38 kB / 0.5657 GB, free: 15.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.977e-05/0.2867, allocations: 32.75 kB / 0.5657 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.614e-05/0.2868, allocations: 37.92 kB / 0.5657 GB, free: 15.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2869, allocations: 330.8 kB / 0.566 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.287, allocations: 35.92 kB / 0.5661 GB, free: 15.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.2871, allocations: 76.27 kB / 0.5662 GB, free: 15.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.2874, allocations: 120.2 kB / 0.5663 GB, free: 15.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2874, allocations: 4 kB / 0.5663 GB, free: 15.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002832/0.2876, allocations: 157.5 kB / 0.5664 GB, free: 15.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.2877, allocations: 8 kB / 0.5664 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.2877, allocations: 0 / 0.5664 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.2877, allocations: 7.938 kB / 0.5664 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.2878, allocations: 23.92 kB / 0.5665 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.2878, allocations: 0 / 0.5665 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.739e-05/0.2879, allocations: 16.08 kB / 0.5665 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.2879, allocations: 8 kB / 0.5665 GB, free: 14.96 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.00011/0.288, allocations: 137 kB / 0.5666 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.851e-05/0.288, allocations: 7.953 kB / 0.5666 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.153e-05/0.288, allocations: 16.42 kB / 0.5666 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.288, allocations: 7.938 kB / 0.5666 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.288, allocations: 0 / 0.5666 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.288, allocations: 0 / 0.5666 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005737/0.2886, allocations: 429.4 kB / 0.5671 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2886, allocations: 0 / 0.5671 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.09e-05/0.2887, allocations: 8 kB / 0.5671 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.2887, allocations: 0 / 0.5671 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.2887, allocations: 3.984 kB / 0.5671 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.2887, allocations: 4 kB / 0.5671 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2887, allocations: 0 / 0.5671 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003623/0.2891, allocations: 266.1 kB / 0.5673 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.385e-05/0.2891, allocations: 11.89 kB / 0.5673 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.2891, allocations: 3.984 kB / 0.5673 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.2892, allocations: 8 kB / 0.5673 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.169e-05/0.2892, allocations: 15.91 kB / 0.5674 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.2893, allocations: 4 kB / 0.5674 GB, free: 13.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.221e-05/0.2893, allocations: 99.2 kB / 0.5675 GB, free: 13.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2893, allocations: 4 kB / 0.5675 GB, free: 13.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002425/0.2896, 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.0006869/0.2903, allocations: 0.7904 MB / 0.5683 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002707/0.2905, allocations: 107.9 kB / 0.5684 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2905, allocations: 0 / 0.5684 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.2906, allocations: 47.59 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.0002638/0.2909, allocations: 12.77 kB / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001997/0.2929, allocations: 1.668 MB / 0.57 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.2932, allocations: 0.6924 MB / 0.5707 GB, free: 10.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.723e-05/0.2933, allocations: 12.97 kB / 0.5707 GB, free: 10.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.385e-05/0.2934, allocations: 27.44 kB / 0.5708 GB, free: 10.34 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2934, allocations: 0 / 0.5708 GB, free: 10.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.3141, allocations: 2.463 MB / 0.5732 GB, free: 7.988 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/10.84, allocations: 8.062 kB / 0.5732 GB, free: 7.98 MB / 414.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.474246053956449] 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'] 10.995014904008713 11.010522289 10.724094767 Calling exit ...