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.001307/0.001307, allocations: 114.3 kB / 18.49 MB, free: 4.566 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.001339/0.001339, allocations: 216.7 kB / 21.46 MB, free: 1.613 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.381/1.381, allocations: 230.4 MB / 254.7 MB, free: 15.03 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.2102/0.2102, allocations: 46.92 MB / 357.7 MB, free: 10.19 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.002123/0.002123, allocations: 83.86 kB / 0.4916 GB, free: 7.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1135, allocations: 66.05 MB / 0.5561 GB, free: 5.555 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00257/0.1161, allocations: 1.546 MB / 0.5577 GB, free: 3.992 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.000912/0.117, allocations: 0.5626 MB / 0.5582 GB, free: 3.426 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.211e-05/0.1171, allocations: 0 / 0.5582 GB, free: 3.426 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.371e-05/0.1171, allocations: 7.922 kB / 0.5582 GB, free: 3.418 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.987e-05/0.1172, allocations: 19.8 kB / 0.5582 GB, free: 3.398 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002214/0.1174, allocations: 51.88 kB / 0.5583 GB, free: 3.348 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001499/0.1176, allocations: 91.7 kB / 0.5584 GB, free: 3.258 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.23e-05/0.1177, allocations: 11.98 kB / 0.5584 GB, free: 3.246 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.1178, allocations: 47.84 kB / 0.5584 GB, free: 3.199 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.017e-05/0.1179, allocations: 39.83 kB / 0.5585 GB, free: 3.16 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.1179, allocations: 8 kB / 0.5585 GB, free: 3.152 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.777e-05/0.1179, allocations: 12 kB / 0.5585 GB, free: 3.141 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.653e-05/0.118, allocations: 19.91 kB / 0.5585 GB, free: 3.121 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.578e-05/0.118, allocations: 43.8 kB / 0.5585 GB, free: 3.078 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001409/0.1182, allocations: 75.7 kB / 0.5586 GB, free: 3.004 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.1182, allocations: 7.984 kB / 0.5586 GB, free: 2.996 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1182, allocations: 0 / 0.5586 GB, free: 2.996 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1182, allocations: 0 / 0.5586 GB, free: 2.996 MB / 414.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.0007129/0.1189, allocations: 411.1 kB / 0.559 GB, free: 2.547 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.1189, allocations: 11.97 kB / 0.559 GB, free: 2.535 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.026e-05/0.119, allocations: 8.125 kB / 0.559 GB, free: 2.527 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.571e-05/0.119, allocations: 38.75 kB / 0.5591 GB, free: 2.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.1191, allocations: 20.88 kB / 0.5591 GB, free: 2.461 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002159/0.1193, allocations: 188.3 kB / 0.5593 GB, free: 2.238 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.1194, allocations: 8.375 kB / 0.5593 GB, free: 2.23 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.849e-05/0.1194, allocations: 8.375 kB / 0.5593 GB, free: 2.223 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002195/0.1196, allocations: 96.33 kB / 0.5594 GB, free: 2.125 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.1196, allocations: 0 / 0.5594 GB, free: 2.125 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.1196, allocations: 7.922 kB / 0.5594 GB, free: 2.117 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.1196, allocations: 8 kB / 0.5594 GB, free: 2.109 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000141/0.1198, allocations: 43.97 kB / 0.5594 GB, free: 2.066 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000537/0.1203, allocations: 328.7 kB / 0.5597 GB, free: 1.695 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002035/0.1205, allocations: 86.53 kB / 0.5598 GB, free: 1.602 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.735e-05/0.1206, allocations: 36.84 kB / 0.5599 GB, free: 1.562 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.1206, allocations: 7.938 kB / 0.5599 GB, free: 1.555 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.1208, allocations: 95.36 kB / 0.56 GB, free: 1.449 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.1208, allocations: 0 / 0.56 GB, free: 1.449 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.000463/0.1213, allocations: 197.7 kB / 0.5602 GB, free: 1.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.1213, allocations: 63.34 kB / 0.5602 GB, free: 1.176 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.671e-05/0.1214, allocations: 118.2 kB / 0.5603 GB, free: 1.051 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.301e-05/0.1215, allocations: 37.69 kB / 0.5604 GB, free: 1.008 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.88e-05/0.1215, allocations: 96.36 kB / 0.5605 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.108e-05/0.1216, allocations: 39.89 kB / 0.5605 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.782e-05/0.1216, allocations: 37.7 kB / 0.5605 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.1218, allocations: 330.7 kB / 0.5608 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.479e-05/0.1219, allocations: 31.98 kB / 0.5609 GB, free: 472 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.122, allocations: 80.27 kB / 0.5609 GB, free: 376 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/0.1222, allocations: 123 kB / 0.5611 GB, free: 240 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1222, allocations: 0 / 0.5611 GB, free: 240 kB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002995/0.1225, allocations: 157.5 kB / 0.5612 GB, free: 76 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.1225, allocations: 8 kB / 0.5612 GB, free: 68 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1225, allocations: 0 / 0.5612 GB, free: 68 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.1226, allocations: 11.92 kB / 0.5612 GB, free: 56 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.1227, allocations: 20 kB / 0.5613 GB, free: 36 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.1227, allocations: 7.922 kB / 0.5613 GB, free: 28 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.957e-05/0.1227, allocations: 12.08 kB / 0.5613 GB, free: 16 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.1228, allocations: 15.98 kB / 0.5613 GB, free: 0 / 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.0001548/0.1229, allocations: 120.1 kB / 0.5614 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.452e-05/0.1229, allocations: 15.94 kB / 0.5614 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.814e-05/0.123, allocations: 12.48 kB / 0.5614 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.123, allocations: 7.938 kB / 0.5614 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.123, allocations: 0 / 0.5614 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.123, allocations: 0 / 0.5614 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005698/0.1235, allocations: 458.2 kB / 0.5619 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1235, allocations: 0 / 0.5619 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.281e-05/0.1236, allocations: 8 kB / 0.5619 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.1236, allocations: 0 / 0.5619 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.1236, allocations: 7.984 kB / 0.5619 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.1236, allocations: 4 kB / 0.5619 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.1236, allocations: 4 kB / 0.5619 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003564/0.124, allocations: 265.6 kB / 0.5621 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.597e-05/0.124, allocations: 81.06 kB / 0.5622 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.634e-05/0.1241, allocations: 7.984 kB / 0.5622 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.1242, allocations: 8 kB / 0.5622 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.1242, allocations: 7.984 kB / 0.5622 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.958e-05/0.1242, allocations: 7.984 kB / 0.5623 GB, free: 14.91 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.49e-05/0.1243, allocations: 103.2 kB / 0.5624 GB, free: 14.8 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1243, allocations: 4 kB / 0.5624 GB, free: 14.8 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002462/0.1245, allocations: 20 kB / 0.5624 GB, free: 14.78 MB / 430.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.0006695/0.1252, allocations: 0.7948 MB / 0.5632 GB, free: 13.96 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002679/0.1255, allocations: 109.8 kB / 0.5633 GB, free: 13.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1255, allocations: 0 / 0.5633 GB, free: 13.86 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.1256, allocations: 47.91 kB / 0.5633 GB, free: 13.81 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.1259, allocations: 8 kB / 0.5633 GB, free: 13.8 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/0.1277, allocations: 1.662 MB / 0.5649 GB, free: 12.03 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.128, allocations: 0.6963 MB / 0.5656 GB, free: 11.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.986e-05/0.128, allocations: 12.89 kB / 0.5656 GB, free: 11.29 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.583e-05/0.1281, allocations: 27.42 kB / 0.5657 GB, free: 11.27 MB / 430.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1281, allocations: 0 / 0.5657 GB, free: 11.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0163/0.1444, allocations: 2.274 MB / 0.5679 GB, free: 9.066 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.865/8.01, allocations: 7 kB / 0.5679 GB, free: 9.062 MB / 430.1 MB " [Timeout remaining time 652] (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: 10.702360448951367] 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.131882854970172 8.147169176 8.026180847 Calling exit ...