Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001545/0.001545, allocations: 109.1 kB / 21.22 MB, free: 0.75 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.002055/0.002055, allocations: 208.2 kB / 24.53 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 230.5 MB / 258.2 MB, free: 8.145 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 63.89 kB / 378.5 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3085, allocations: 53.4 MB / 431.9 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003242/0.3118, allocations: 1.505 MB / 433.5 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007115/0.3125, allocations: 291.2 kB / 433.7 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.801e-05/0.3126, allocations: 3.938 kB / 433.7 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001382/0.3127, allocations: 23.73 kB / 433.8 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.711e-05/0.3128, allocations: 15.81 kB / 433.8 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003776/0.3131, allocations: 119.8 kB / 433.9 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003463/0.3135, allocations: 267.5 kB / 434.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002802/0.3138, allocations: 138.7 kB / 434.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/0.3139, allocations: 95.7 kB / 434.4 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.314, allocations: 91.55 kB / 434.5 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.847e-05/0.3141, allocations: 24 kB / 434.5 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.484e-05/0.3142, allocations: 31.97 kB / 434.5 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.248e-05/0.3142, allocations: 55.84 kB / 434.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.3144, allocations: 95.52 kB / 434.7 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003298/0.3147, allocations: 243.4 kB / 434.9 MB, free: 3.695 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3147, allocations: 0 / 434.9 MB, free: 3.695 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3147, allocations: 0 / 434.9 MB, free: 3.695 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.373e-06/0.3147, allocations: 0 / 434.9 MB, free: 3.695 MB / 334.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.000687/0.3154, allocations: 413 kB / 435.3 MB, free: 3.262 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.3154, allocations: 12.03 kB / 435.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.992e-05/0.3154, allocations: 4.688 kB / 435.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.314e-05/0.3155, allocations: 62.72 kB / 435.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002525/0.3158, allocations: 32.83 kB / 435.4 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000484/0.3163, allocations: 170.2 kB / 435.6 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.944e-05/0.3163, allocations: 20.88 kB / 435.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.762e-05/0.3164, allocations: 28.38 kB / 435.6 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005043/0.3169, allocations: 239 kB / 435.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.3169, allocations: 0 / 435.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.741e-05/0.3169, allocations: 8 kB / 435.9 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.3169, allocations: 4 kB / 435.9 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003683/0.3173, allocations: 165.6 kB / 436 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.3185, allocations: 0.6588 MB / 436.7 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003377/0.3189, allocations: 154.2 kB / 436.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001506/0.319, allocations: 68.83 kB / 436.9 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.319, allocations: 3.938 kB / 436.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002469/0.3193, allocations: 114.4 kB / 437 MB, free: 1.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.753e-06/0.3193, allocations: 0 / 437 MB, free: 1.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004942/0.3198, allocations: 225.3 kB / 437.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.672e-05/0.3198, allocations: 55.41 kB / 437.3 MB, free: 1.137 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001711/0.32, allocations: 154 kB / 437.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.32, allocations: 33.7 kB / 437.5 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.3202, allocations: 136.8 kB / 437.6 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.07e-05/0.3202, allocations: 63.52 kB / 437.7 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.3204, allocations: 81.95 kB / 437.8 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3205, allocations: 322.8 kB / 438.1 MB, free: 328 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.3206, allocations: 64.62 kB / 438.2 MB, free: 264 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.3208, allocations: 132 kB / 438.3 MB, free: 108 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000283/0.3211, allocations: 174.7 kB / 438.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.3211, allocations: 3.938 kB / 438.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003712/0.3215, allocations: 241.3 kB / 438.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.3215, allocations: 8 kB / 438.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3215, allocations: 0 / 438.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.3215, allocations: 4 kB / 438.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.3216, allocations: 27.92 kB / 438.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.3216, allocations: 4 kB / 438.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.3218, allocations: 31.78 kB / 438.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/0.3218, allocations: 12.22 kB / 438.8 MB, free: 15.58 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.0001506/0.3219, allocations: 161.6 kB / 438.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.18e-05/0.3219, allocations: 11.95 kB / 438.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.382e-05/0.322, allocations: 12.94 kB / 439 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.322, allocations: 4 kB / 439 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.322, allocations: 3.984 kB / 439 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.322, allocations: 0 / 439 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000774/0.3228, allocations: 0.5294 MB / 439.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3228, allocations: 3.984 kB / 439.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.452e-05/0.3229, allocations: 12 kB / 439.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.3229, allocations: 0 / 439.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.3229, allocations: 4 kB / 439.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.3229, allocations: 8 kB / 439.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.3229, allocations: 3.938 kB / 439.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003567/0.3233, allocations: 271.9 kB / 439.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.342e-05/0.3233, allocations: 15.89 kB / 439.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.627e-05/0.3233, allocations: 0 / 439.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.079e-05/0.3234, allocations: 11.98 kB / 439.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.881e-05/0.3235, allocations: 23.91 kB / 439.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.3235, allocations: 8 kB / 439.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.995e-05/0.3236, allocations: 98.52 kB / 439.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3236, allocations: 3.938 kB / 440 MB, free: 14.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003415/0.3239, allocations: 51.84 kB / 440 MB, free: 14.28 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: 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.0007705/0.3247, allocations: 0.8021 MB / 440.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003477/0.3251, allocations: 156.4 kB / 441 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3251, allocations: 0 / 441 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001372/0.3252, allocations: 87.56 kB / 441 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003038/0.3255, allocations: 24.36 kB / 441.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002368/0.3279, allocations: 1.987 MB / 443.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.3282, allocations: 0.7362 MB / 443.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.778e-05/0.3283, allocations: 21.94 kB / 443.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.3284, allocations: 55.42 kB / 443.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3284, allocations: 0 / 443.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02292/0.3514, allocations: 3.69 MB / 447.6 MB, free: 6.668 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.25, allocations: 3.562 kB / 447.6 MB, free: 6.668 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.782454540021718] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.42166625300888 11.436300729 11.118511482 Calling exit ...