Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.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.00175/0.00175, allocations: 122.5 kB / 18.51 MB, free: 4.539 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.001806/0.001806, allocations: 215.2 kB / 21.46 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.42/1.42, allocations: 230.5 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex 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. Warning: Requested package ModelicaServices 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.003256/0.003256, allocations: 64.08 kB / 373.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1172, allocations: 53.32 MB / 427 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002905/0.1201, allocations: 1.513 MB / 428.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006917/0.1208, allocations: 275.2 kB / 428.8 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.063e-05/0.1208, allocations: 4 kB / 428.8 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.121, allocations: 31.67 kB / 428.8 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.254e-05/0.121, allocations: 15.8 kB / 428.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/0.1214, allocations: 107.8 kB / 428.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004356/0.1218, allocations: 263.5 kB / 429.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002599/0.1221, allocations: 138.4 kB / 429.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.1222, allocations: 87.7 kB / 429.4 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.1223, allocations: 95.59 kB / 429.5 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.224e-05/0.1224, allocations: 20 kB / 429.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.706e-05/0.1224, allocations: 31.98 kB / 429.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.772e-05/0.1225, allocations: 59.83 kB / 429.6 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.1226, allocations: 95.47 kB / 429.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003138/0.1229, allocations: 254.9 kB / 429.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1229, allocations: 0 / 429.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1229, allocations: 0 / 429.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1229, allocations: 0 / 429.9 MB, free: 1.84 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008424/0.1238, allocations: 486.3 kB / 430.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.1238, allocations: 12.03 kB / 430.4 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.436e-05/0.1239, allocations: 54.73 kB / 430.5 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002587/0.1242, allocations: 40.81 kB / 430.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.1245, allocations: 220.1 kB / 430.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.06e-05/0.1245, allocations: 24.92 kB / 430.7 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.955e-05/0.1245, allocations: 24.38 kB / 430.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004321/0.125, allocations: 244 kB / 431 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.125, allocations: 7.875 kB / 431 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.542e-05/0.125, allocations: 8 kB / 431 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.125, allocations: 8 kB / 431 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003029/0.1253, allocations: 153.7 kB / 431.2 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.1264, allocations: 0.6974 MB / 431.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000298/0.1267, allocations: 157.5 kB / 432 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.1268, allocations: 68.77 kB / 432.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.613e-05/0.1269, allocations: 7.938 kB / 432.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002356/0.1271, allocations: 111.4 kB / 432.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.1271, allocations: 0 / 432.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004425/0.1275, allocations: 216.7 kB / 432.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.1276, allocations: 55.41 kB / 432.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.1277, allocations: 157 kB / 432.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.649e-05/0.1278, allocations: 37.7 kB / 432.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.98e-05/0.1279, allocations: 128.8 kB / 432.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.884e-05/0.1279, allocations: 67.52 kB / 432.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.1281, allocations: 78.02 kB / 432.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1282, allocations: 318.8 kB / 433.3 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.1284, allocations: 64.62 kB / 433.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.1285, allocations: 132.1 kB / 433.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000316/0.1288, allocations: 179.1 kB / 433.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.1288, allocations: 0 / 433.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003673/0.1292, allocations: 237.3 kB / 433.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.1292, allocations: 8 kB / 433.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1292, allocations: 3.938 kB / 433.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.1293, allocations: 8.219 kB / 433.9 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.1294, allocations: 27.92 kB / 433.9 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.1294, allocations: 7.984 kB / 433.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.299e-05/0.1295, allocations: 27.78 kB / 433.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.209e-05/0.1295, allocations: 12 kB / 433.9 MB, free: 13.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001609/0.1297, allocations: 157.7 kB / 434.1 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.24e-05/0.1297, allocations: 11.95 kB / 434.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.136e-05/0.1298, allocations: 16.83 kB / 434.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.535e-06/0.1298, allocations: 12 kB / 434.1 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1298, allocations: 0 / 434.1 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.1298, allocations: 3.938 kB / 434.1 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007286/0.1305, allocations: 0.5452 MB / 434.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1305, allocations: 0 / 434.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.576e-05/0.1306, allocations: 19.94 kB / 434.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.1306, allocations: 3.984 kB / 434.7 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.1306, allocations: 4 kB / 434.7 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1306, allocations: 0 / 434.7 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.1306, allocations: 11.92 kB / 434.7 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003093/0.1309, allocations: 271.9 kB / 435 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.975e-05/0.131, allocations: 89 kB / 435.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.131, allocations: 3.984 kB / 435.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.373e-05/0.1311, allocations: 8 kB / 435.1 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.27e-05/0.1312, allocations: 27.91 kB / 435.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.079e-05/0.1312, allocations: 4 kB / 435.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.539e-05/0.1313, allocations: 107.2 kB / 435.2 MB, free: 12.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1313, allocations: 0 / 435.2 MB, free: 12.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.1315, allocations: 51.84 kB / 435.3 MB, free: 12.1 MB / 366.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0006891/0.1322, allocations: 0.8011 MB / 436.1 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003397/0.1326, allocations: 164.4 kB / 436.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1326, allocations: 0 / 436.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.1327, allocations: 75.77 kB / 436.3 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.133, allocations: 21.83 kB / 436.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.1353, allocations: 1.994 MB / 438.3 MB, free: 8.902 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.1357, allocations: 0.7323 MB / 439.1 MB, free: 8.145 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.851e-05/0.1358, allocations: 21.95 kB / 439.1 MB, free: 8.125 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.1359, allocations: 59.41 kB / 439.1 MB, free: 8.066 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1359, allocations: 0 / 439.1 MB, free: 8.066 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02499/0.1609, allocations: 3.428 MB / 442.6 MB, free: 4.727 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.229/8.39, allocations: 3.938 kB / 442.6 MB, free: 4.723 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_res.csv --start-time 0 --stop-time 5.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00109737 Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.062192760873586] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.463153189979494 8.688356586 8.563117303 Calling exit ...