Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001887/0.001887, allocations: 120 kB / 18.5 MB, free: 4.52 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.002271/0.002271, allocations: 213.6 kB / 21.46 MB, free: 1.566 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.531/1.531, allocations: 230.5 MB / 254.8 MB, free: 15.11 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_Variant2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant2",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.002003/0.002003, allocations: 59.84 kB / 373.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.109, allocations: 53.33 MB / 427 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003045/0.1121, allocations: 1.68 MB / 428.7 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007147/0.1128, allocations: 287.2 kB / 428.9 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.534e-05/0.1129, allocations: 7.938 kB / 429 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001617/0.113, allocations: 27.67 kB / 429 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.961e-05/0.1131, allocations: 19.8 kB / 429 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004203/0.1135, allocations: 123.8 kB / 429.1 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003772/0.1139, allocations: 267.6 kB / 429.4 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003139/0.1142, allocations: 170.8 kB / 429.6 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001236/0.1143, allocations: 95.64 kB / 429.6 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001549/0.1145, allocations: 95.59 kB / 429.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.918e-05/0.1145, allocations: 28 kB / 429.8 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.159e-05/0.1146, allocations: 35.98 kB / 429.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.657e-05/0.1147, allocations: 55.83 kB / 429.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.1148, allocations: 107.5 kB / 430 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003665/0.1152, allocations: 254.9 kB / 430.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.797e-06/0.1152, allocations: 4 kB / 430.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1152, allocations: 0 / 430.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.303e-06/0.1152, allocations: 0 / 430.2 MB, free: 1.57 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008159/0.116, allocations: 0.4905 MB / 430.7 MB, free: 1.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.1161, allocations: 16.03 kB / 430.7 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.999e-05/0.1162, allocations: 62.66 kB / 430.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002692/0.1164, allocations: 32.78 kB / 430.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004165/0.1168, allocations: 228.1 kB / 431 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.26e-05/0.1169, allocations: 24.94 kB / 431.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.079e-05/0.1169, allocations: 28.38 kB / 431.1 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004992/0.1174, allocations: 274.5 kB / 431.4 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.1174, allocations: 3.938 kB / 431.4 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/0.1175, allocations: 12 kB / 431.4 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.1175, allocations: 4 kB / 431.4 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003204/0.1178, allocations: 165.6 kB / 431.5 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00126/0.1191, allocations: 0.9557 MB / 432.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002986/0.1194, allocations: 157.3 kB / 432.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.1195, allocations: 76.41 kB / 432.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.14e-05/0.1195, allocations: 0 / 432.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002316/0.1197, allocations: 137 kB / 432.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.192e-06/0.1197, allocations: 0 / 432.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004462/0.1202, allocations: 220.4 kB / 433.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.338e-05/0.1203, allocations: 97.2 kB / 433.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.1204, allocations: 160 kB / 433.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.73e-05/0.1205, allocations: 37.64 kB / 433.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.1206, allocations: 144.7 kB / 433.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.006e-05/0.1207, allocations: 63.52 kB / 433.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.1208, allocations: 81.64 kB / 433.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1209, allocations: 326.8 kB / 434 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.1211, allocations: 63.75 kB / 434 MB, free: 13.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002035/0.1213, allocations: 156.3 kB / 434.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002969/0.1216, allocations: 192.8 kB / 434.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.1216, allocations: 4 kB / 434.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004399/0.122, allocations: 253.3 kB / 434.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.122, allocations: 4 kB / 434.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.122, allocations: 4 kB / 434.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.403e-05/0.1221, allocations: 7.984 kB / 434.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.1222, allocations: 31.92 kB / 434.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.1222, allocations: 7.938 kB / 434.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.1223, allocations: 27.78 kB / 434.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.245e-05/0.1224, allocations: 16.28 kB / 434.7 MB, free: 12.72 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001731/0.1225, allocations: 161.7 kB / 434.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.662e-05/0.1226, allocations: 11.95 kB / 434.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.077e-05/0.1226, allocations: 12.84 kB / 434.9 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.1226, allocations: 4 kB / 434.9 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.1226, allocations: 0 / 434.9 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.1226, allocations: 7.984 kB / 434.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008027/0.1234, allocations: 0.5752 MB / 435.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.1234, allocations: 4 kB / 435.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.521e-05/0.1235, allocations: 19.92 kB / 435.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.1235, allocations: 4 kB / 435.5 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.1235, allocations: 3.938 kB / 435.5 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1235, allocations: 4 kB / 435.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1235, allocations: 0 / 435.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003362/0.1239, allocations: 279.4 kB / 435.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.402e-05/0.1239, allocations: 92.95 kB / 435.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.231e-05/0.124, allocations: 11.94 kB / 435.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.624e-05/0.1241, allocations: 8 kB / 435.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.075e-05/0.1241, allocations: 23.91 kB / 435.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.1241, allocations: 4 kB / 435.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.736e-05/0.1242, allocations: 99.2 kB / 436 MB, free: 11.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1242, allocations: 0 / 436 MB, free: 11.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000333/0.1245, allocations: 55.88 kB / 436.1 MB, free: 11.25 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0007124/0.1253, allocations: 0.8184 MB / 436.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003473/0.1256, allocations: 176.5 kB / 437.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1256, allocations: 64 / 437.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001288/0.1257, allocations: 75.72 kB / 437.1 MB, free: 10.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.126, allocations: 34.2 kB / 437.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002514/0.1286, allocations: 2.065 MB / 439.2 MB, free: 7.914 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003936/0.129, allocations: 0.7365 MB / 440 MB, free: 7.152 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.642e-05/0.129, allocations: 17.95 kB / 440 MB, free: 7.133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.1291, allocations: 63.41 kB / 440.1 MB, free: 7.07 MB / 366.1 MB Notification: Performance of SimCode: time 1.413e-06/0.1292, allocations: 0 / 440.1 MB, free: 7.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02578/0.1549, allocations: 3.519 MB / 443.6 MB, free: 3.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.151/8.306, allocations: 6.453 kB / 443.6 MB, free: 3.656 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2_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_Variant2.fmu > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.065249362960458] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.373357592150569 8.576206488 8.458725743 Calling exit ...