Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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.001225/0.001225, allocations: 106 kB / 18.49 MB, free: 4.543 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.001225/0.001225, allocations: 197 kB / 21.43 MB, free: 1.609 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.386/1.386, 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,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 47.92 kB / 366.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09779/0.09946, allocations: 52.15 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00315/0.1026, allocations: 1.483 MB / 419.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007562/0.1034, allocations: 279.2 kB / 420.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.1035, allocations: 3.938 kB / 420.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001492/0.1036, allocations: 27.73 kB / 420.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.963e-05/0.1037, allocations: 15.81 kB / 420.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004357/0.1041, allocations: 111.8 kB / 420.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003746/0.1045, allocations: 259.5 kB / 420.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003015/0.1048, allocations: 144.1 kB / 420.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.105, allocations: 95.69 kB / 420.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.1051, allocations: 87.61 kB / 420.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.462e-05/0.1052, allocations: 27.98 kB / 421 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.201e-05/0.1053, allocations: 31.94 kB / 421 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.833e-05/0.1053, allocations: 59.83 kB / 421.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.1054, allocations: 91.53 kB / 421.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003399/0.1058, allocations: 246.9 kB / 421.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1058, allocations: 0 / 421.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.1058, allocations: 4 kB / 421.4 MB, free: 9.676 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.1058, allocations: 0 / 421.4 MB, free: 9.676 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.0008345/0.1066, allocations: 498.2 kB / 421.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.1067, allocations: 8.031 kB / 421.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.058e-05/0.1067, allocations: 8.75 kB / 421.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.601e-05/0.1068, allocations: 58.73 kB / 422 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.197e-05/0.1068, allocations: 20.8 kB / 422 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003774/0.1072, allocations: 236 kB / 422.2 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.186e-05/0.1073, allocations: 20.94 kB / 422.2 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.808e-05/0.1073, allocations: 24.38 kB / 422.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004627/0.1078, allocations: 247.8 kB / 422.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.1078, allocations: 0 / 422.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/0.1078, allocations: 12 kB / 422.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.1078, allocations: 8 kB / 422.5 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003246/0.1081, allocations: 157.6 kB / 422.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.1093, allocations: 0.6975 MB / 423.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003248/0.1096, allocations: 158.8 kB / 423.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.1098, allocations: 68.83 kB / 423.6 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.1098, allocations: 7.938 kB / 423.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002288/0.11, allocations: 115.3 kB / 423.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.884e-06/0.11, allocations: 0 / 423.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005853/0.1106, allocations: 222.4 kB / 423.9 MB, free: 6.953 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/0.1107, allocations: 55.41 kB / 424 MB, free: 6.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.1108, allocations: 148.5 kB / 424.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.1109, allocations: 41.69 kB / 424.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.111, allocations: 136.8 kB / 424.3 MB, free: 6.551 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.568e-05/0.111, allocations: 55.58 kB / 424.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.1112, allocations: 85.95 kB / 424.4 MB, free: 6.402 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1113, allocations: 322.8 kB / 424.8 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.1114, allocations: 60.62 kB / 424.8 MB, free: 6.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.1116, allocations: 132.1 kB / 424.9 MB, free: 5.867 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002724/0.1119, allocations: 175.2 kB / 425.1 MB, free: 5.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.1119, allocations: 3.938 kB / 425.1 MB, free: 5.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004202/0.1123, allocations: 245.3 kB / 425.4 MB, free: 5.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.1123, allocations: 6.5 kB / 425.4 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.1123, allocations: 4.219 kB / 425.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.1124, allocations: 4 kB / 425.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.1125, allocations: 31.91 kB / 425.4 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.1125, allocations: 4 kB / 425.4 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001244/0.1126, allocations: 23.83 kB / 425.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.1127, allocations: 19.94 kB / 425.4 MB, free: 5.332 MB / 350.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.0001711/0.1129, allocations: 157.7 kB / 425.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.752e-05/0.1129, allocations: 11.91 kB / 425.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003879/0.1133, allocations: 206.9 kB / 425.8 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1133, allocations: 4 kB / 425.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1133, allocations: 0 / 425.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.1133, allocations: 3.984 kB / 425.8 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008268/0.1141, allocations: 0.5684 MB / 426.4 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.1141, allocations: 0 / 426.4 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.037e-05/0.1142, allocations: 12 kB / 426.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.307e-06/0.1142, allocations: 11.92 kB / 426.4 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.1142, allocations: 4 kB / 426.4 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.1142, allocations: 11.88 kB / 426.4 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1142, allocations: 0 / 426.4 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003705/0.1146, allocations: 283.3 kB / 426.7 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.15e-05/0.1147, allocations: 89 kB / 426.8 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.543e-05/0.1147, allocations: 4 kB / 426.8 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.322e-05/0.1148, allocations: 11.92 kB / 426.8 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.387e-05/0.1149, allocations: 23.97 kB / 426.8 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.1149, allocations: 12 kB / 426.8 MB, free: 3.828 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.387e-05/0.115, allocations: 95.27 kB / 426.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.115, allocations: 0 / 426.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003281/0.1153, allocations: 47.89 kB / 427 MB, free: 3.688 MB / 350.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: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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.0007567/0.1161, allocations: 0.8183 MB / 427.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000356/0.1164, allocations: 176 kB / 428 MB, free: 2.672 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1164, allocations: 0 / 428 MB, free: 2.672 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001568/0.1166, allocations: 75.84 kB / 428 MB, free: 2.598 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.1169, allocations: 23.92 kB / 428.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0026/0.1195, allocations: 2.019 MB / 430.1 MB, free: 440 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000427/0.1199, allocations: 0.7324 MB / 430.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.064e-05/0.12, allocations: 26.12 kB / 430.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.1201, allocations: 59.36 kB / 430.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1201, allocations: 0 / 430.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02004/0.1401, allocations: 3.717 MB / 434.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.994/8.134, allocations: 12.47 kB / 434.6 MB, free: 11.95 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.595403487968724] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.256400058977306 8.435378479 8.162363546 Calling exit ...