Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 110.5 kB / 18.48 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 193 kB / 21.43 MB, free: 1.633 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 225.6 MB / 249.8 MB, free: 3.723 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 47.92 kB / 366.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09939/0.1009, allocations: 52.13 MB / 418.5 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002922/0.1038, allocations: 1.711 MB / 420.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007065/0.1045, allocations: 291.1 kB / 420.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.916e-05/0.1046, allocations: 7.938 kB / 420.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.1048, allocations: 23.73 kB / 420.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.841e-05/0.1048, allocations: 15.81 kB / 420.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004165/0.1052, allocations: 123.8 kB / 420.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003473/0.1056, allocations: 275.4 kB / 420.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002735/0.1059, allocations: 149.6 kB / 421 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.106, allocations: 87.7 kB / 421.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.1061, allocations: 99.53 kB / 421.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.671e-05/0.1061, allocations: 28 kB / 421.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.764e-05/0.1062, allocations: 35.98 kB / 421.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.774e-05/0.1063, allocations: 63.77 kB / 421.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.1064, allocations: 95.47 kB / 421.4 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003416/0.1067, allocations: 258.9 kB / 421.7 MB, free: 9.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1068, allocations: 0 / 421.7 MB, free: 9.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1068, allocations: 0 / 421.7 MB, free: 9.441 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.1068, allocations: 0 / 421.7 MB, free: 9.441 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.0007203/0.1075, allocations: 0.4906 MB / 422.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.1075, allocations: 12.03 kB / 422.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.741e-05/0.1075, allocations: 8.75 kB / 422.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.22e-05/0.1076, allocations: 58.73 kB / 422.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.865e-05/0.1077, allocations: 24.8 kB / 422.3 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003444/0.108, allocations: 232.1 kB / 422.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.108, allocations: 20.94 kB / 422.5 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.1081, allocations: 36.3 kB / 422.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000457/0.1086, allocations: 278.3 kB / 422.8 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.1086, allocations: 0 / 422.8 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/0.1086, allocations: 12 kB / 422.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.1086, allocations: 8 kB / 422.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003282/0.109, allocations: 169.5 kB / 423 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.1102, allocations: 0.9791 MB / 424 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002892/0.1105, allocations: 157.4 kB / 424.2 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.1106, allocations: 69.69 kB / 424.2 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.1106, allocations: 4 kB / 424.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002235/0.1108, allocations: 137 kB / 424.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.713e-06/0.1108, allocations: 0 / 424.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004535/0.1113, allocations: 217.8 kB / 424.6 MB, free: 6.328 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.362e-05/0.1113, allocations: 97.06 kB / 424.7 MB, free: 6.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.1115, allocations: 152.8 kB / 424.8 MB, free: 6.059 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.49e-05/0.1115, allocations: 37.7 kB / 424.9 MB, free: 6.016 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.1116, allocations: 140.8 kB / 425 MB, free: 5.875 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.951e-05/0.1117, allocations: 67.45 kB / 425.1 MB, free: 5.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.1118, allocations: 77.69 kB / 425.1 MB, free: 5.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1119, allocations: 330.8 kB / 425.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.112, allocations: 71.95 kB / 425.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.1122, allocations: 136.3 kB / 425.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002757/0.1125, allocations: 200.8 kB / 425.9 MB, free: 4.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1125, allocations: 0 / 425.9 MB, free: 4.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003944/0.1129, allocations: 257.3 kB / 426.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.1129, allocations: 11.98 kB / 426.1 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1129, allocations: 0 / 426.1 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.1129, allocations: 4 kB / 426.1 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.1131, allocations: 31.92 kB / 426.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.1131, allocations: 4 kB / 426.2 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.1132, allocations: 32.12 kB / 426.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.099e-05/0.1132, allocations: 15.98 kB / 426.2 MB, free: 4.578 MB / 350.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.0001584/0.1134, allocations: 162.2 kB / 426.4 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.707e-05/0.1134, allocations: 15.91 kB / 426.4 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003584/0.1138, allocations: 198.3 kB / 426.6 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.1138, allocations: 7.938 kB / 426.6 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.1138, allocations: 0 / 426.6 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.1138, allocations: 3.938 kB / 426.6 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007576/0.1145, allocations: 0.5948 MB / 427.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1145, allocations: 0 / 427.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.421e-05/0.1146, allocations: 19.92 kB / 427.2 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.1146, allocations: 7.938 kB / 427.2 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.1146, allocations: 8 kB / 427.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1146, allocations: 0 / 427.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1146, allocations: 4 kB / 427.2 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003348/0.115, allocations: 287.9 kB / 427.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.687e-05/0.115, allocations: 100.9 kB / 427.6 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/0.1151, allocations: 4 kB / 427.6 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.332e-05/0.1152, allocations: 8 kB / 427.6 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.455e-05/0.1152, allocations: 19.97 kB / 427.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.1153, allocations: 8 kB / 427.6 MB, free: 3.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.595e-05/0.1153, allocations: 99.27 kB / 427.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1153, allocations: 0 / 427.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003159/0.1156, allocations: 63.83 kB / 427.8 MB, free: 2.867 MB / 350.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: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0006739/0.1163, allocations: 0.823 MB / 428.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003338/0.1166, allocations: 180.3 kB / 428.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1166, allocations: 0 / 428.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.1168, allocations: 75.86 kB / 428.9 MB, free: 1.766 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.1171, allocations: 28.72 kB / 428.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.1196, allocations: 2.074 MB / 431 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000391/0.12, allocations: 0.7402 MB / 431.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.499e-05/0.1201, allocations: 17.95 kB / 431.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.1202, allocations: 67.41 kB / 431.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1202, allocations: 4 kB / 431.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02013/0.1403, allocations: 3.761 MB / 435.6 MB, free: 11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.828/7.968, allocations: 14.22 kB / 435.6 MB, free: 10.99 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.4236397339846] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.09236075100489 8.26311104 7.997936899 Calling exit ...