Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001276/0.001276, allocations: 118.6 kB / 18.5 MB, free: 4.434 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.001387/0.001387, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.45/1.45, allocations: 230.4 MB / 254.7 MB, free: 15.21 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_Variant3,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant3",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.001941/0.001941, allocations: 71.81 kB / 373.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1067, allocations: 53.3 MB / 426.9 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00339/0.1101, allocations: 1.727 MB / 428.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000816/0.1109, allocations: 291.1 kB / 428.9 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.111, allocations: 4 kB / 428.9 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001507/0.1111, allocations: 27.67 kB / 428.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.198e-05/0.1112, allocations: 19.8 kB / 428.9 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004203/0.1116, allocations: 119.8 kB / 429 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003771/0.112, allocations: 263.6 kB / 429.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003008/0.1123, allocations: 161.5 kB / 429.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.1124, allocations: 91.69 kB / 429.5 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.1126, allocations: 95.61 kB / 429.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.174e-05/0.1126, allocations: 24 kB / 429.7 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.629e-05/0.1127, allocations: 35.98 kB / 429.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.489e-05/0.1128, allocations: 59.81 kB / 429.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.1129, allocations: 103.4 kB / 429.8 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003485/0.1133, allocations: 262.9 kB / 430.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1133, allocations: 0 / 430.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1133, allocations: 0 / 430.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.1133, allocations: 0 / 430.1 MB, free: 1.668 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.0007175/0.114, allocations: 494.5 kB / 430.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.114, allocations: 12.03 kB / 430.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.078e-05/0.1141, allocations: 62.72 kB / 430.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002471/0.1144, allocations: 36.78 kB / 430.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/0.1147, allocations: 232 kB / 430.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.561e-05/0.1147, allocations: 24.88 kB / 430.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.294e-05/0.1148, allocations: 24.38 kB / 431 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004516/0.1152, allocations: 274.6 kB / 431.2 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.1153, allocations: 3.938 kB / 431.2 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.404e-05/0.1153, allocations: 8 kB / 431.2 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.1153, allocations: 8 kB / 431.3 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003038/0.1156, allocations: 169.5 kB / 431.4 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.1168, allocations: 0.9558 MB / 432.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002977/0.1171, allocations: 157.3 kB / 432.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.1173, allocations: 77.69 kB / 432.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.1173, allocations: 0 / 432.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002425/0.1175, allocations: 129.1 kB / 432.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.1175, allocations: 0 / 432.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004646/0.118, allocations: 228.5 kB / 433 MB, free: 14.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.073e-05/0.1181, allocations: 85.23 kB / 433 MB, free: 14.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.1182, allocations: 161.6 kB / 433.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.1182, allocations: 37.69 kB / 433.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.1184, allocations: 144.7 kB / 433.4 MB, free: 14.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.869e-05/0.1184, allocations: 63.53 kB / 433.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.1185, allocations: 85.39 kB / 433.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.1187, allocations: 326.8 kB / 433.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.1188, allocations: 63.97 kB / 433.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.119, allocations: 144.3 kB / 434 MB, free: 13.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002812/0.1192, allocations: 196.3 kB / 434.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1192, allocations: 0 / 434.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003987/0.1196, allocations: 257.3 kB / 434.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.1197, allocations: 10.19 kB / 434.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.1197, allocations: 0 / 434.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.1197, allocations: 4 kB / 434.5 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.1199, allocations: 35.92 kB / 434.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.1199, allocations: 7.938 kB / 434.5 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.12, allocations: 28.11 kB / 434.6 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.12, allocations: 16 kB / 434.6 MB, free: 12.84 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.0001924/0.1202, allocations: 165.6 kB / 434.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.718e-05/0.1202, allocations: 11.91 kB / 434.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.818e-05/0.1203, allocations: 20.84 kB / 434.8 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.1203, allocations: 4 kB / 434.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1203, allocations: 3.938 kB / 434.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1203, allocations: 0 / 434.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008485/0.1211, allocations: 0.5869 MB / 435.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1211, allocations: 0 / 435.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.887e-05/0.1212, allocations: 12 kB / 435.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1212, allocations: 0 / 435.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.1212, allocations: 11.94 kB / 435.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1212, allocations: 0 / 435.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1212, allocations: 3.984 kB / 435.4 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003406/0.1216, allocations: 276.1 kB / 435.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.712e-05/0.1216, allocations: 85.06 kB / 435.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.175e-05/0.1217, allocations: 15.92 kB / 435.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.736e-05/0.1218, allocations: 4 kB / 435.8 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.775e-05/0.1219, allocations: 19.97 kB / 435.8 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.1219, allocations: 12 kB / 435.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.541e-05/0.122, allocations: 91.27 kB / 435.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.122, allocations: 0 / 435.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003093/0.1223, allocations: 59.78 kB / 436 MB, free: 11.35 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,transition1.enableFire,step.active,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.0006946/0.123, allocations: 0.8136 MB / 436.8 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003528/0.1233, allocations: 176.4 kB / 436.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1233, allocations: 4.188 kB / 436.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.1235, allocations: 67.77 kB / 437 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.1238, allocations: 22.73 kB / 437 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/0.1262, allocations: 2.058 MB / 439.1 MB, free: 8.051 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003983/0.1266, allocations: 0.7403 MB / 439.8 MB, free: 7.281 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.565e-05/0.1267, allocations: 17.95 kB / 439.8 MB, free: 7.258 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.1268, allocations: 63.41 kB / 439.9 MB, free: 7.195 MB / 366.1 MB Notification: Performance of SimCode: time 4.9e-07/0.1268, allocations: 0 / 439.9 MB, free: 7.195 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02615/0.153, allocations: 3.496 MB / 443.4 MB, free: 3.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.065/8.218, allocations: 6.344 kB / 443.4 MB, free: 3.805 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.643048187252134] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.28613508027047 8.475631325 8.360321003 Calling exit ...