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.00169/0.00169, allocations: 122 kB / 18.45 MB, free: 4.59 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.001995/0.001995, allocations: 211.3 kB / 21.41 MB, free: 1.641 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.563/1.563, allocations: 227.4 MB / 251.6 MB, free: 84 kB / 190.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.2438/0.2438, allocations: 46.15 MB / 351.1 MB, free: 14.31 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.002277/0.002277, allocations: 83.27 kB / 489.7 MB, free: 28.35 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1188, allocations: 62.45 MB / 0.5392 GB, free: 4.797 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003144/0.122, allocations: 1.545 MB / 0.5407 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.1232, allocations: 0.5493 MB / 0.5412 GB, free: 2.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.279e-05/0.1233, allocations: 4 kB / 0.5412 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.839e-05/0.1234, allocations: 3.938 kB / 0.5412 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.967e-05/0.1235, allocations: 19.84 kB / 0.5412 GB, free: 2.652 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003221/0.1238, allocations: 55.81 kB / 0.5413 GB, free: 2.598 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001614/0.124, allocations: 91.7 kB / 0.5414 GB, free: 2.508 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.1242, allocations: 8 kB / 0.5414 GB, free: 2.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.1243, allocations: 51.83 kB / 0.5414 GB, free: 2.449 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.333e-05/0.1244, allocations: 39.78 kB / 0.5415 GB, free: 2.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.141e-05/0.1245, allocations: 4 kB / 0.5415 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.132e-05/0.1245, allocations: 19.98 kB / 0.5415 GB, free: 2.387 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.334e-05/0.1246, allocations: 23.91 kB / 0.5415 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.533e-05/0.1247, allocations: 35.8 kB / 0.5415 GB, free: 2.328 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001823/0.1248, allocations: 87.92 kB / 0.5416 GB, free: 2.242 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1249, allocations: 0 / 0.5416 GB, free: 2.242 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1249, allocations: 0 / 0.5416 GB, free: 2.242 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1249, allocations: 0 / 0.5416 GB, free: 2.242 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.0007827/0.1257, allocations: 403.1 kB / 0.542 GB, free: 1.801 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.1257, allocations: 12.03 kB / 0.542 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.854e-05/0.1258, allocations: 42.73 kB / 0.5421 GB, free: 1.738 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.1259, allocations: 16.89 kB / 0.5421 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/0.1263, allocations: 196.2 kB / 0.5423 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.1264, allocations: 8.375 kB / 0.5423 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.875e-05/0.1264, allocations: 12.3 kB / 0.5423 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002605/0.1266, allocations: 96.89 kB / 0.5424 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.1267, allocations: 0 / 0.5424 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.1267, allocations: 0 / 0.5424 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.1267, allocations: 7.984 kB / 0.5424 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001463/0.1269, allocations: 51.91 kB / 0.5424 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005796/0.1274, allocations: 324.7 kB / 0.5428 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002208/0.1277, allocations: 94.53 kB / 0.5428 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.1278, allocations: 44.84 kB / 0.5429 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.1278, allocations: 4 kB / 0.5429 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002171/0.1281, allocations: 103.3 kB / 0.543 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.1281, allocations: 0 / 0.543 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005003/0.1286, allocations: 193.7 kB / 0.5432 GB, free: 500 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/0.1286, allocations: 59.39 kB / 0.5432 GB, free: 428 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.1288, allocations: 125.8 kB / 0.5433 GB, free: 292 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.1288, allocations: 29.7 kB / 0.5434 GB, free: 256 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.376e-05/0.1289, allocations: 96.38 kB / 0.5435 GB, free: 152 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.423e-05/0.1289, allocations: 31.73 kB / 0.5435 GB, free: 120 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.303e-05/0.129, allocations: 37.7 kB / 0.5435 GB, free: 76 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.1292, allocations: 326.8 kB / 0.5438 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.1293, allocations: 39.97 kB / 0.5439 GB, free: 15.71 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.1294, allocations: 80.2 kB / 0.544 GB, free: 15.61 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002234/0.1296, allocations: 119.2 kB / 0.5441 GB, free: 15.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1297, allocations: 4 kB / 0.5441 GB, free: 15.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003306/0.13, allocations: 161.8 kB / 0.5442 GB, free: 15.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.13, allocations: 4 kB / 0.5442 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.13, allocations: 3.938 kB / 0.5442 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.178e-05/0.1301, allocations: 7.938 kB / 0.5442 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.1302, allocations: 27.86 kB / 0.5443 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.1302, allocations: 0 / 0.5443 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.187e-05/0.1303, allocations: 24.02 kB / 0.5443 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.1303, allocations: 4 kB / 0.5443 GB, free: 15.25 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.0001398/0.1305, allocations: 136 kB / 0.5444 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.105e-05/0.1305, allocations: 7.953 kB / 0.5444 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.361e-05/0.1305, allocations: 8.5 kB / 0.5444 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.1305, allocations: 7.938 kB / 0.5445 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.1305, allocations: 0 / 0.5445 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.1306, allocations: 0 / 0.5445 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008611/0.1314, allocations: 450.4 kB / 0.5449 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.1314, allocations: 11.94 kB / 0.5449 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.209e-05/0.1315, allocations: 7.984 kB / 0.5449 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.1315, allocations: 0 / 0.5449 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.1315, allocations: 4 kB / 0.5449 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1315, allocations: 0 / 0.5449 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1315, allocations: 0 / 0.5449 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003894/0.1319, allocations: 270.9 kB / 0.5452 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.608e-05/0.132, allocations: 92.94 kB / 0.5453 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.751e-05/0.1321, allocations: 3.984 kB / 0.5453 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.1322, allocations: 11.98 kB / 0.5453 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.587e-05/0.1322, allocations: 11.98 kB / 0.5453 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.1323, allocations: 4 kB / 0.5453 GB, free: 14.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.78e-05/0.1323, allocations: 95.64 kB / 0.5454 GB, free: 14.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1323, allocations: 0 / 0.5454 GB, free: 14.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000255/0.1326, allocations: 24 kB / 0.5454 GB, free: 14.03 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.0008708/0.1335, allocations: 0.7865 MB / 0.5462 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000295/0.1338, allocations: 112.1 kB / 0.5463 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.1338, allocations: 4.062 kB / 0.5463 GB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001275/0.1339, allocations: 59.84 kB / 0.5463 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.1343, allocations: 17.86 kB / 0.5464 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.1363, allocations: 1.645 MB / 0.548 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004974/0.1368, allocations: 0.6962 MB / 0.5486 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.134e-05/0.1369, allocations: 20.81 kB / 0.5487 GB, free: 10.53 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.113e-05/0.1369, allocations: 23.44 kB / 0.5487 GB, free: 10.51 MB / 414.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1369, allocations: 0 / 0.5487 GB, free: 10.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02551/0.1625, allocations: 2.24 MB / 0.5509 GB, free: 8.348 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.901/8.063, allocations: 0 / 0.5509 GB, free: 8.348 MB / 414.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000396747 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.194663563976064] 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.130793621065095 8.154413629 8.025380367 Calling exit ...