Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001256/0.001256, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001361/0.001361, allocations: 211.8 kB / 24.51 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.377/1.377, allocations: 230.6 MB / 258.3 MB, free: 7.766 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 43.92 kB / 378.5 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2591, allocations: 53.37 MB / 431.8 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002858/0.2619, allocations: 1.656 MB / 433.5 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006368/0.2626, allocations: 287.2 kB / 433.8 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.268e-05/0.2626, allocations: 7.938 kB / 433.8 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001217/0.2628, allocations: 27.67 kB / 433.8 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.1e-05/0.2628, allocations: 27.73 kB / 433.8 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003713/0.2632, allocations: 135.7 kB / 434 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003303/0.2635, allocations: 267.5 kB / 434.2 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.2638, allocations: 168.6 kB / 434.4 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.2639, allocations: 91.66 kB / 434.5 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.264, allocations: 107.5 kB / 434.6 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.493e-05/0.2641, allocations: 24 kB / 434.6 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.525e-05/0.2641, allocations: 32 kB / 434.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.456e-05/0.2642, allocations: 51.84 kB / 434.7 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.402e-05/0.2643, allocations: 87.62 kB / 434.8 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003085/0.2646, allocations: 258.9 kB / 435 MB, free: 3.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2646, allocations: 0 / 435 MB, free: 3.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2646, allocations: 0 / 435 MB, free: 3.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.2646, allocations: 0 / 435 MB, free: 3.453 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.0006305/0.2653, allocations: 425.2 kB / 435.4 MB, free: 3.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.2653, allocations: 8.031 kB / 435.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.302e-05/0.2653, allocations: 12.62 kB / 435.5 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.352e-05/0.2654, allocations: 66.72 kB / 435.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002438/0.2656, allocations: 32.78 kB / 435.6 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/0.2659, allocations: 170.2 kB / 435.7 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.113e-05/0.2659, allocations: 28.86 kB / 435.8 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.11e-05/0.266, allocations: 28.38 kB / 435.8 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004511/0.2664, allocations: 277.5 kB / 436.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.2664, allocations: 0 / 436.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.114e-05/0.2664, allocations: 4 kB / 436.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.2664, allocations: 8 kB / 436.1 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003133/0.2668, allocations: 161.6 kB / 436.2 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.2678, allocations: 0.882 MB / 437.1 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002731/0.2681, allocations: 157.3 kB / 437.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001179/0.2682, allocations: 69.69 kB / 437.3 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.2682, allocations: 4 kB / 437.3 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002136/0.2685, allocations: 142.6 kB / 437.5 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.2685, allocations: 0 / 437.5 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004161/0.2689, allocations: 225 kB / 437.7 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.745e-05/0.2689, allocations: 85.11 kB / 437.8 MB, free: 0.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.2691, allocations: 169 kB / 437.9 MB, free: 336 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.2691, allocations: 37.7 kB / 438 MB, free: 292 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.918e-05/0.2692, allocations: 144.8 kB / 438.1 MB, free: 140 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.779e-05/0.2693, allocations: 55.58 kB / 438.2 MB, free: 84 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.2694, allocations: 81.72 kB / 438.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.2695, allocations: 334.8 kB / 438.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.2697, allocations: 67.75 kB / 438.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001712/0.2698, allocations: 140.5 kB / 438.8 MB, free: 15.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002658/0.2701, allocations: 196.8 kB / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2701, allocations: 0 / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000398/0.2705, allocations: 253.6 kB / 439.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.2705, allocations: 8 kB / 439.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.2705, allocations: 0 / 439.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.2705, allocations: 4 kB / 439.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.2707, allocations: 35.86 kB / 439.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.2707, allocations: 4 kB / 439.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.884e-05/0.2708, allocations: 35.77 kB / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.2708, allocations: 8 kB / 439.3 MB, free: 14.85 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.0001499/0.2709, allocations: 157.7 kB / 439.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.516e-05/0.271, allocations: 19.95 kB / 439.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.485e-05/0.271, allocations: 20.94 kB / 439.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.271, allocations: 4 kB / 439.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.271, allocations: 0 / 439.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.271, allocations: 3.984 kB / 439.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006949/0.2717, allocations: 0.5274 MB / 440 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.686e-06/0.2717, allocations: 4 kB / 440.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.272e-05/0.2718, allocations: 15.92 kB / 440.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.2718, allocations: 4 kB / 440.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.294e-05/0.2718, allocations: 11.88 kB / 440.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.2718, allocations: 8 kB / 440.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.2718, allocations: 0 / 440.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003059/0.2721, allocations: 272.2 kB / 440.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.078e-05/0.2721, allocations: 15.84 kB / 440.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.713e-05/0.2722, allocations: 15.88 kB / 440.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.461e-05/0.2723, allocations: 7.984 kB / 440.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.966e-05/0.2723, allocations: 19.97 kB / 440.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-05/0.2723, allocations: 8 kB / 440.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.948e-05/0.2724, allocations: 95.27 kB / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2724, allocations: 0 / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000288/0.2727, allocations: 47.89 kB / 440.6 MB, free: 13.52 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: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 19 * 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.0006129/0.2733, allocations: 0.829 MB / 441.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003118/0.2736, allocations: 171.7 kB / 441.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2736, allocations: 0 / 441.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.2737, allocations: 71.84 kB / 441.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002644/0.274, allocations: 28.61 kB / 441.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002368/0.2764, allocations: 2.069 MB / 443.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001192/0.2765, allocations: 125.6 kB / 443.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.846e-05/0.2766, allocations: 25.94 kB / 443.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.2767, allocations: 55.42 kB / 443.9 MB, free: 9.969 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2767, allocations: 0 / 443.9 MB, free: 9.969 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02235/0.299, allocations: 3.871 MB / 447.8 MB, free: 6.258 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/10.86, allocations: 4 kB / 447.8 MB, free: 6.254 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.130947305005975] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.017817341024056 11.032979387 10.765472281 Calling exit ...