Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.007594/0.007594, allocations: 101.2 kB / 21.96 MB, free: 5.199 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002134/0.002134, allocations: 218 kB / 25.26 MB, free: 3.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 207.7 MB / 236.1 MB, free: 9.812 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001719/0.001719, allocations: 57.8 kB / 348 MB, free: 9.918 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2511, allocations: 49.15 MB / 397.1 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002522/0.2536, allocations: 1.627 MB / 398.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005651/0.2542, allocations: 260.8 kB / 399 MB, free: 7.605 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.69e-05/0.2543, allocations: 8.469 kB / 399 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.2544, allocations: 29.34 kB / 399 MB, free: 7.578 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.315e-05/0.2544, allocations: 15.27 kB / 399 MB, free: 7.566 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003814/0.2548, allocations: 127.5 kB / 399.2 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002826/0.2551, allocations: 275.1 kB / 399.4 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000239/0.2553, allocations: 162.8 kB / 399.6 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.981e-05/0.2554, allocations: 92.88 kB / 399.7 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.2556, allocations: 104.2 kB / 399.8 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.657e-05/0.2556, allocations: 23.5 kB / 399.8 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.194e-05/0.2557, allocations: 33.52 kB / 399.8 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.424e-05/0.2557, allocations: 55.59 kB / 399.9 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.545e-05/0.2558, allocations: 86.23 kB / 400 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002786/0.2561, allocations: 256.5 kB / 400.2 MB, free: 6.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2561, allocations: 4 kB / 400.2 MB, free: 6.977 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2561, allocations: 3.938 kB / 400.2 MB, free: 6.973 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.2561, allocations: 1.406 kB / 400.2 MB, free: 6.973 MB / 318.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.0005065/0.2566, allocations: 417.8 kB / 400.6 MB, free: 6.621 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.2566, allocations: 14.02 kB / 400.7 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.781e-05/0.2566, allocations: 7.344 kB / 400.7 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.524e-05/0.2567, allocations: 60.44 kB / 400.7 MB, free: 6.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.082e-05/0.2567, allocations: 26.12 kB / 400.8 MB, free: 6.547 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002231/0.257, allocations: 175.7 kB / 400.9 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.077e-05/0.257, allocations: 26.2 kB / 401 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.648e-05/0.257, allocations: 25.94 kB / 401 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004278/0.2575, allocations: 282.6 kB / 401.3 MB, free: 6.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.2575, allocations: 0 / 401.3 MB, free: 6.203 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.2575, allocations: 10.97 kB / 401.3 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.2575, allocations: 10.52 kB / 401.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00028/0.2578, allocations: 164.7 kB / 401.4 MB, free: 6.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008463/0.2586, allocations: 0.8844 MB / 402.3 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002331/0.2589, allocations: 140 kB / 402.5 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.704e-05/0.259, allocations: 65.5 kB / 402.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.077e-05/0.259, allocations: 2.969 kB / 402.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001742/0.2591, allocations: 123.9 kB / 402.6 MB, free: 5.211 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.2591, allocations: 0 / 402.6 MB, free: 5.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003782/0.2595, allocations: 212.4 kB / 402.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.2596, allocations: 61.12 kB / 402.9 MB, free: 5.055 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.318e-05/0.2597, allocations: 157.6 kB / 403.1 MB, free: 4.926 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.2597, allocations: 38.62 kB / 403.1 MB, free: 4.887 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.266e-05/0.2597, allocations: 145.9 kB / 403.2 MB, free: 4.758 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.584e-05/0.2598, allocations: 54.31 kB / 403.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.617e-05/0.2599, allocations: 84.91 kB / 403.4 MB, free: 4.668 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.551e-05/0.2599, allocations: 329.5 kB / 403.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.26, allocations: 64.97 kB / 403.8 MB, free: 4.324 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001288/0.2601, allocations: 130.8 kB / 403.9 MB, free: 4.223 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.2603, allocations: 194.2 kB / 404.1 MB, free: 4.078 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.2604, allocations: 0 / 404.1 MB, free: 4.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000329/0.2607, allocations: 250.6 kB / 404.3 MB, free: 3.961 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.2607, allocations: 6.781 kB / 404.3 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2607, allocations: 2.312 kB / 404.3 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.2607, allocations: 3.375 kB / 404.3 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.2609, allocations: 42.27 kB / 404.4 MB, free: 3.949 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.2609, allocations: 3.5 kB / 404.4 MB, free: 3.949 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.301e-05/0.261, allocations: 32.34 kB / 404.4 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.909e-05/0.261, allocations: 21.19 kB / 404.4 MB, free: 3.918 MB / 318.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001218/0.2611, allocations: 158.1 kB / 404.6 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/0.2611, allocations: 18.5 kB / 404.6 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003106/0.2614, allocations: 184 kB / 404.8 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.2614, allocations: 3.312 kB / 404.8 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.2614, allocations: 4 kB / 404.8 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.2615, allocations: 5.266 kB / 404.8 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005883/0.262, allocations: 0.553 MB / 405.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.262, allocations: 1.188 kB / 405.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.353e-05/0.2621, allocations: 20.86 kB / 405.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2621, allocations: 1.094 kB / 405.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.2621, allocations: 7.391 kB / 405.4 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.2621, allocations: 1.156 kB / 405.4 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2621, allocations: 0.7969 kB / 405.4 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002493/0.2624, allocations: 272.1 kB / 405.7 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.574e-05/0.2624, allocations: 25.66 kB / 405.7 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.2624, allocations: 10.3 kB / 405.7 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.249e-05/0.2625, allocations: 8.719 kB / 405.7 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.124e-05/0.2626, allocations: 26.11 kB / 405.7 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.467e-05/0.2626, allocations: 5.344 kB / 405.7 MB, free: 3.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.121e-05/0.2626, allocations: 101.3 kB / 405.8 MB, free: 2.938 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2626, allocations: 0 / 405.8 MB, free: 2.938 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.2629, allocations: 51.64 kB / 405.9 MB, free: 2.922 MB / 318.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 (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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.000402/0.2633, allocations: 0.8207 MB / 406.7 MB, free: 2.199 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002755/0.2636, allocations: 179.3 kB / 406.9 MB, free: 2.141 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2636, allocations: 0 / 406.9 MB, free: 2.141 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.2637, allocations: 71.31 kB / 406.9 MB, free: 2.121 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.264, allocations: 18.36 kB / 407 MB, free: 2.113 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/0.2657, allocations: 2.065 MB / 409 MB, free: 484 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/0.2658, allocations: 130.2 kB / 409.2 MB, free: 400 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.13e-05/0.2659, allocations: 34.98 kB / 409.2 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.979e-05/0.266, allocations: 66.81 kB / 409.3 MB, free: 340 kB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.266, allocations: 0 / 409.3 MB, free: 340 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02345/0.2894, allocations: 4.077 MB / 413.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.04, allocations: 6.5 kB / 413.3 MB, free: 14.73 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --stepSize=0.000998203 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.393911492079496] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.19751955603715 11.224544178 10.963274488 Calling exit ...