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.00122/0.00122, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001335/0.001335, allocations: 210.1 kB / 24.51 MB, free: 3.941 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.344/1.344, allocations: 230.5 MB / 258.2 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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.21/0.21, allocations: 46.95 MB / 361.6 MB, free: 3.957 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.002184/0.002184, allocations: 83.81 kB / 0.4969 GB, free: 7.602 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2902, allocations: 66.08 MB / 0.5614 GB, free: 4.086 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002777/0.293, allocations: 1.531 MB / 0.5629 GB, free: 2.547 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009098/0.2939, allocations: 0.5182 MB / 0.5634 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.535e-05/0.294, allocations: 3.938 kB / 0.5634 GB, free: 2.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.821e-05/0.294, allocations: 15.8 kB / 0.5634 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.755e-05/0.2941, allocations: 11.88 kB / 0.5635 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002365/0.2943, allocations: 51.81 kB / 0.5635 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000149/0.2944, allocations: 87.81 kB / 0.5636 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.278e-05/0.2945, allocations: 8 kB / 0.5636 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.2947, allocations: 51.77 kB / 0.5636 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.759e-05/0.2948, allocations: 47.83 kB / 0.5637 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.309e-05/0.2948, allocations: 8 kB / 0.5637 GB, free: 1.742 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.278e-05/0.2948, allocations: 12 kB / 0.5637 GB, free: 1.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.006e-05/0.2949, allocations: 23.86 kB / 0.5637 GB, free: 1.707 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.14e-05/0.2949, allocations: 35.84 kB / 0.5638 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.2951, allocations: 77.53 kB / 0.5638 GB, free: 1.598 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.2951, allocations: 0 / 0.5638 GB, free: 1.598 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2951, allocations: 4 kB / 0.5638 GB, free: 1.594 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.2951, allocations: 0 / 0.5638 GB, free: 1.594 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.0006524/0.2957, allocations: 334 kB / 0.5642 GB, free: 1.238 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.2958, allocations: 12.03 kB / 0.5642 GB, free: 1.227 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.116e-05/0.2958, allocations: 192 / 0.5642 GB, free: 1.227 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.001e-05/0.2958, allocations: 42.73 kB / 0.5642 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/0.296, allocations: 20.81 kB / 0.5642 GB, free: 1.156 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/0.2962, allocations: 130.4 kB / 0.5644 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.2962, allocations: 4.375 kB / 0.5644 GB, free: 1 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.939e-05/0.2962, allocations: 12.38 kB / 0.5644 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.2964, allocations: 97.56 kB / 0.5645 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.2964, allocations: 0 / 0.5645 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.2965, allocations: 0 / 0.5645 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.2965, allocations: 4 kB / 0.5645 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001368/0.2966, allocations: 43.97 kB / 0.5645 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005129/0.2971, allocations: 291.7 kB / 0.5648 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002196/0.2973, allocations: 86.53 kB / 0.5649 GB, free: 428 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.531e-05/0.2974, allocations: 40.84 kB / 0.5649 GB, free: 384 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.2974, allocations: 7.984 kB / 0.5649 GB, free: 376 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001923/0.2976, allocations: 103.3 kB / 0.565 GB, free: 260 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.2976, allocations: 0 / 0.565 GB, free: 260 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004669/0.2981, allocations: 201 kB / 0.5652 GB, free: 56 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/0.2982, allocations: 59.41 kB / 0.5653 GB, free: 15.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.2983, allocations: 117.8 kB / 0.5654 GB, free: 15.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.2983, allocations: 37.7 kB / 0.5654 GB, free: 15.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.206e-05/0.2984, allocations: 92.38 kB / 0.5655 GB, free: 15.72 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.423e-05/0.2984, allocations: 40.73 kB / 0.5655 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.879e-05/0.2985, allocations: 37.92 kB / 0.5656 GB, free: 15.64 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.2986, allocations: 326.8 kB / 0.5659 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.683e-05/0.2987, allocations: 43.86 kB / 0.5659 GB, free: 15.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.2988, allocations: 76.27 kB / 0.566 GB, free: 15.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002077/0.2991, allocations: 116.2 kB / 0.5661 GB, free: 15.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2991, allocations: 0 / 0.5661 GB, free: 15.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002935/0.2994, allocations: 165.5 kB / 0.5663 GB, free: 14.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.2994, allocations: 8 kB / 0.5663 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.2994, allocations: 0 / 0.5663 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.2994, allocations: 3.938 kB / 0.5663 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.2995, allocations: 32.05 kB / 0.5663 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/0.2995, allocations: 4 kB / 0.5663 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.019e-05/0.2996, allocations: 7.953 kB / 0.5663 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.2996, allocations: 8 kB / 0.5663 GB, free: 14.82 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.0001117/0.2997, allocations: 131.7 kB / 0.5665 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.849e-05/0.2997, allocations: 11.95 kB / 0.5665 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.222e-05/0.2997, allocations: 12.44 kB / 0.5665 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.2998, allocations: 7.938 kB / 0.5665 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2998, allocations: 0 / 0.5665 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.2998, allocations: 4 kB / 0.5665 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000553/0.3003, allocations: 416.2 kB / 0.5669 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3003, allocations: 0 / 0.5669 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.277e-05/0.3004, allocations: 11.98 kB / 0.5669 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.3004, allocations: 0 / 0.5669 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.3004, allocations: 0 / 0.5669 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.3004, allocations: 4 kB / 0.5669 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3004, allocations: 3.984 kB / 0.5669 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003653/0.3008, allocations: 263.4 kB / 0.5672 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.46e-05/0.3008, allocations: 11.95 kB / 0.5672 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/0.3008, allocations: 4 kB / 0.5672 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.3009, allocations: 11.98 kB / 0.5672 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.928e-05/0.301, allocations: 7.922 kB / 0.5672 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.301, allocations: 11.98 kB / 0.5672 GB, free: 13.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.909e-05/0.301, allocations: 95.22 kB / 0.5673 GB, free: 13.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.301, allocations: 0 / 0.5673 GB, free: 13.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002387/0.3013, allocations: 23.98 kB / 0.5673 GB, free: 13.73 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.0006556/0.3019, allocations: 0.7904 MB / 0.5681 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002552/0.3022, allocations: 119.3 kB / 0.5682 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.3022, allocations: 0 / 0.5682 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001203/0.3023, allocations: 43.92 kB / 0.5682 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.3026, allocations: 16.73 kB / 0.5683 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/0.3044, allocations: 1.668 MB / 0.5699 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.791e-05/0.3045, allocations: 75.33 kB / 0.57 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.224e-05/0.3045, allocations: 12.97 kB / 0.57 GB, free: 10.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.266e-05/0.3046, allocations: 31.42 kB / 0.57 GB, free: 10.82 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3046, allocations: 0 / 0.57 GB, free: 10.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02041/0.325, allocations: 2.508 MB / 0.5725 GB, free: 8.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.96, allocations: 10.31 kB / 0.5725 GB, free: 8.426 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.600430009071715] 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'] 11.115898975054733 11.130289738 10.832384654 Calling exit ...