Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001717/0.001717, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001824/0.001824, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.508/1.508, allocations: 230.5 MB / 258.2 MB, free: 7.816 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_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 59.91 kB / 378.5 MB, free: 2.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2581, allocations: 53.41 MB / 431.9 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003169/0.2612, allocations: 1.686 MB / 433.6 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000695/0.2619, allocations: 299.2 kB / 433.9 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.262, allocations: 7.938 kB / 433.9 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.2622, allocations: 23.67 kB / 433.9 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.29e-05/0.2622, allocations: 23.8 kB / 433.9 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004144/0.2626, allocations: 123.8 kB / 434 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003528/0.263, allocations: 267.5 kB / 434.3 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003338/0.2633, allocations: 172.2 kB / 434.5 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.2635, allocations: 87.77 kB / 434.6 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001655/0.2636, allocations: 103.5 kB / 434.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.815e-05/0.2637, allocations: 20 kB / 434.7 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.861e-05/0.2637, allocations: 28 kB / 434.7 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.572e-05/0.2638, allocations: 55.83 kB / 434.8 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.2639, allocations: 87.58 kB / 434.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004219/0.2643, allocations: 254.8 kB / 435.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2644, allocations: 0 / 435.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2644, allocations: 0 / 435.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.2644, allocations: 0 / 435.1 MB, free: 3.434 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.0007824/0.2651, allocations: 425.2 kB / 435.5 MB, free: 2.988 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.2652, allocations: 8.031 kB / 435.5 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.019e-05/0.2652, allocations: 8.688 kB / 435.5 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.101e-05/0.2653, allocations: 58.73 kB / 435.6 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002361/0.2655, allocations: 32.78 kB / 435.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003552/0.2659, allocations: 174.2 kB / 435.8 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.114e-05/0.2659, allocations: 28.81 kB / 435.8 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.75e-05/0.266, allocations: 32.36 kB / 435.8 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004979/0.2665, allocations: 265.5 kB / 436.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.2665, allocations: 8 kB / 436.1 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.701e-05/0.2665, allocations: 7.984 kB / 436.1 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.2665, allocations: 8 kB / 436.1 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000338/0.2669, allocations: 165.5 kB / 436.3 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.2681, allocations: 0.8743 MB / 437.2 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002899/0.2684, allocations: 161.3 kB / 437.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.2685, allocations: 77 kB / 437.4 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.2685, allocations: 0 / 437.4 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002311/0.2687, allocations: 144.1 kB / 437.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.2687, allocations: 0 / 437.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004431/0.2692, allocations: 221.3 kB / 437.7 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/0.2692, allocations: 81.11 kB / 437.8 MB, free: 500 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.2694, allocations: 153.7 kB / 438 MB, free: 336 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.2694, allocations: 33.7 kB / 438 MB, free: 296 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.2695, allocations: 148.7 kB / 438.2 MB, free: 140 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.512e-05/0.2696, allocations: 63.52 kB / 438.2 MB, free: 76 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.2697, allocations: 81.52 kB / 438.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.2698, allocations: 330.7 kB / 438.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.27, allocations: 64.05 kB / 438.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.2701, allocations: 140.5 kB / 438.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003036/0.2704, allocations: 200.3 kB / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.2704, allocations: 0 / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004267/0.2709, allocations: 257.2 kB / 439.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.2709, allocations: 4 kB / 439.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.2709, allocations: 4 kB / 439.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.2709, allocations: 7.938 kB / 439.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.2711, allocations: 35.92 kB / 439.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.2711, allocations: 4 kB / 439.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.2712, allocations: 24.17 kB / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.2712, allocations: 15.98 kB / 439.4 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.00018/0.2714, allocations: 157.7 kB / 439.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.618e-05/0.2714, allocations: 11.91 kB / 439.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.821e-05/0.2715, allocations: 24.92 kB / 439.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.2715, allocations: 7.984 kB / 439.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.2715, allocations: 0 / 439.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.2715, allocations: 0 / 439.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007637/0.2723, allocations: 0.5359 MB / 440.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.2723, allocations: 4 kB / 440.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.091e-05/0.2723, allocations: 12 kB / 440.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.2724, allocations: 3.984 kB / 440.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.896e-05/0.2724, allocations: 11.94 kB / 440.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.2724, allocations: 0 / 440.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2724, allocations: 0 / 440.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003382/0.2727, allocations: 280.1 kB / 440.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.158e-05/0.2727, allocations: 11.95 kB / 440.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.2728, allocations: 11.88 kB / 440.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.282e-05/0.2729, allocations: 8 kB / 440.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.282e-05/0.2729, allocations: 23.95 kB / 440.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.2729, allocations: 12 kB / 440.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.626e-05/0.273, allocations: 95.27 kB / 440.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.273, allocations: 0 / 440.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.2733, allocations: 55.84 kB / 440.6 MB, free: 13.51 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,transition1.enableFire,step.active,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.00066/0.274, allocations: 0.8107 MB / 441.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003538/0.2743, allocations: 172.7 kB / 441.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2743, allocations: 0 / 441.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.2745, allocations: 75.83 kB / 441.7 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.0003114/0.2748, allocations: 23.98 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.002342/0.2771, allocations: 2.059 MB / 443.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001343/0.2773, allocations: 125.6 kB / 443.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.024e-05/0.2773, allocations: 17.95 kB / 443.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.2775, allocations: 67.34 kB / 444 MB, free: 9.969 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2775, allocations: 4 kB / 444 MB, free: 9.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02355/0.301, allocations: 3.813 MB / 447.8 MB, free: 6.285 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.21, allocations: 15.98 kB / 447.8 MB, free: 6.27 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.715286807040684] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.368834416964091 11.385261349 11.117474218 Calling exit ...