Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001208/0.001208, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001278/0.001278, allocations: 188.4 kB / 24.49 MB, free: 3.957 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.358/1.358, allocations: 225.7 MB / 253.3 MB, free: 12.84 MB / 206.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_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 51.92 kB / 371.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2412, allocations: 52.18 MB / 423.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002958/0.2441, allocations: 1.64 MB / 425 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000747/0.2449, allocations: 291.2 kB / 425.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.245, allocations: 4 kB / 425.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.2452, allocations: 31.67 kB / 425.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.939e-05/0.2452, allocations: 19.73 kB / 425.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000461/0.2457, allocations: 131.8 kB / 425.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003613/0.246, allocations: 279.5 kB / 425.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003058/0.2463, allocations: 149.7 kB / 425.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.2465, allocations: 95.69 kB / 425.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001541/0.2466, allocations: 99.55 kB / 426 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.18e-05/0.2466, allocations: 28 kB / 426.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.079e-05/0.2467, allocations: 35.98 kB / 426.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.714e-05/0.2468, allocations: 59.81 kB / 426.2 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.2469, allocations: 83.64 kB / 426.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003233/0.2472, allocations: 262.9 kB / 426.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2472, allocations: 3.938 kB / 426.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2472, allocations: 3.938 kB / 426.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.2472, allocations: 0 / 426.5 MB, free: 11.21 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006594/0.2479, allocations: 429.1 kB / 426.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.2479, allocations: 12.03 kB / 426.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.702e-05/0.2479, allocations: 8.688 kB / 427 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.784e-05/0.248, allocations: 54.73 kB / 427 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.781e-05/0.2481, allocations: 24.8 kB / 427 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002824/0.2483, allocations: 178.2 kB / 427.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.392e-05/0.2484, allocations: 20.88 kB / 427.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.169e-05/0.2484, allocations: 24.38 kB / 427.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004822/0.2489, allocations: 281.5 kB / 427.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.2489, allocations: 0 / 427.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.579e-05/0.2489, allocations: 12 kB / 427.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.2489, allocations: 4 kB / 427.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003043/0.2493, allocations: 173.6 kB / 427.7 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.2504, allocations: 0.8742 MB / 428.6 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.2507, allocations: 165.3 kB / 428.7 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.2508, allocations: 73.62 kB / 428.8 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.2509, allocations: 8 kB / 428.8 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002137/0.2511, allocations: 132.5 kB / 429 MB, free: 8.582 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.2511, allocations: 0 / 429 MB, free: 8.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004452/0.2515, allocations: 229.4 kB / 429.2 MB, free: 8.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.475e-05/0.2516, allocations: 85.14 kB / 429.3 MB, free: 8.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.2517, allocations: 153.7 kB / 429.4 MB, free: 8.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.466e-05/0.2518, allocations: 41.7 kB / 429.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.2519, allocations: 148.7 kB / 429.6 MB, free: 7.891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.242e-05/0.2519, allocations: 55.59 kB / 429.7 MB, free: 7.836 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.252, allocations: 77.67 kB / 429.7 MB, free: 7.754 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.2522, allocations: 330.8 kB / 430 MB, free: 7.422 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.2523, allocations: 63.97 kB / 430.1 MB, free: 7.359 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.2525, allocations: 140.5 kB / 430.2 MB, free: 7.191 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002686/0.2527, allocations: 196.8 kB / 430.4 MB, free: 6.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.319e-06/0.2527, allocations: 4 kB / 430.4 MB, free: 6.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003951/0.2531, allocations: 265.2 kB / 430.7 MB, free: 6.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.2532, allocations: 6.344 kB / 430.7 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.2532, allocations: 4 kB / 430.7 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.2532, allocations: 4 kB / 430.7 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.2533, allocations: 35.84 kB / 430.8 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.2533, allocations: 7.984 kB / 430.8 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.693e-05/0.2534, allocations: 31.83 kB / 430.8 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.2535, allocations: 8 kB / 430.8 MB, free: 6.605 MB / 334.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.0001552/0.2536, allocations: 170 kB / 431 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.405e-05/0.2537, allocations: 11.91 kB / 431 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003509/0.254, allocations: 198.4 kB / 431.2 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.254, allocations: 4 kB / 431.2 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.254, allocations: 3.984 kB / 431.2 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.254, allocations: 0 / 431.2 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007489/0.2548, allocations: 0.5509 MB / 431.7 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2548, allocations: 3.984 kB / 431.7 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.4e-05/0.2549, allocations: 16 kB / 431.7 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.2549, allocations: 3.938 kB / 431.8 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.2549, allocations: 19.88 kB / 431.8 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.2549, allocations: 3.984 kB / 431.8 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2549, allocations: 0 / 431.8 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003457/0.2552, allocations: 292.6 kB / 432.1 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.198e-05/0.2552, allocations: 19.78 kB / 432.1 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.2553, allocations: 8 kB / 432.1 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.662e-05/0.2554, allocations: 8 kB / 432.1 MB, free: 5.215 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.249e-05/0.2554, allocations: 23.95 kB / 432.1 MB, free: 5.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.2554, allocations: 4 kB / 432.1 MB, free: 5.188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.326e-05/0.2555, allocations: 102.8 kB / 432.2 MB, free: 5.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2555, allocations: 4 kB / 432.2 MB, free: 5.086 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003012/0.2558, allocations: 51.89 kB / 432.3 MB, free: 5.035 MB / 334.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,step.active,transition1.enableFire,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.0006697/0.2565, allocations: 0.8377 MB / 433.1 MB, free: 4.168 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003179/0.2568, allocations: 163.8 kB / 433.3 MB, free: 4.008 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2568, allocations: 4 kB / 433.3 MB, free: 4.004 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.2569, allocations: 76.41 kB / 433.4 MB, free: 3.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002864/0.2572, allocations: 27.98 kB / 433.4 MB, free: 3.902 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.2595, allocations: 2.102 MB / 435.5 MB, free: 1.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001207/0.2597, allocations: 125.3 kB / 435.6 MB, free: 1.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.77e-05/0.2597, allocations: 29.94 kB / 435.6 MB, free: 1.488 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.2599, allocations: 59.42 kB / 435.7 MB, free: 1.43 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2599, allocations: 0 / 435.7 MB, free: 1.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02279/0.2826, allocations: 4.112 MB / 439.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/10.94, allocations: 11.19 kB / 439.8 MB, free: 13.48 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.21124993590638] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.10515534505248 11.127739186 10.876327299 Calling exit ...