Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001511/0.001511, 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.001565/0.001565, allocations: 187.6 kB / 24.49 MB, free: 3.984 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.39/1.39, allocations: 225.7 MB / 253.3 MB, free: 12.83 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_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00164/0.00164, allocations: 59.89 kB / 371.1 MB, free: 9.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2458, allocations: 52.19 MB / 423.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003168/0.249, allocations: 1.667 MB / 425 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006708/0.2496, allocations: 295.1 kB / 425.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.001e-05/0.2497, allocations: 7.938 kB / 425.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.2499, allocations: 27.67 kB / 425.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.447e-05/0.2499, allocations: 23.75 kB / 425.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000392/0.2503, allocations: 123.8 kB / 425.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000333/0.2506, allocations: 275.5 kB / 425.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002635/0.2509, allocations: 144 kB / 425.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001042/0.251, allocations: 99.69 kB / 426 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.2511, allocations: 99.53 kB / 426.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.984e-05/0.2512, allocations: 28 kB / 426.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.211e-05/0.2513, allocations: 35.98 kB / 426.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.648e-05/0.2513, allocations: 51.84 kB / 426.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.773e-05/0.2514, allocations: 87.58 kB / 426.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.2518, allocations: 254.9 kB / 426.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2518, allocations: 0 / 426.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2518, allocations: 0 / 426.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.2518, allocations: 4 kB / 426.5 MB, free: 11.23 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.0006613/0.2524, allocations: 421.2 kB / 426.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.2525, allocations: 12.03 kB / 427 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.589e-05/0.2525, allocations: 12.62 kB / 427 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.86e-05/0.2525, allocations: 58.73 kB / 427 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.561e-05/0.2526, allocations: 32.73 kB / 427.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/0.2529, allocations: 170.3 kB / 427.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.421e-05/0.2529, allocations: 20.88 kB / 427.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.272e-05/0.253, allocations: 24.38 kB / 427.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004749/0.2535, allocations: 281.5 kB / 427.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.2535, allocations: 3.984 kB / 427.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.615e-05/0.2535, allocations: 12 kB / 427.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.2535, allocations: 4 kB / 427.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003036/0.2538, allocations: 173.6 kB / 427.7 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.255, allocations: 0.8742 MB / 428.6 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002942/0.2553, allocations: 161.4 kB / 428.8 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.2554, allocations: 69.69 kB / 428.8 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.425e-05/0.2554, allocations: 4 kB / 428.8 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002327/0.2556, allocations: 141 kB / 429 MB, free: 8.602 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.184e-06/0.2556, allocations: 0 / 429 MB, free: 8.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004772/0.2561, allocations: 223 kB / 429.2 MB, free: 8.379 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.2562, allocations: 89.23 kB / 429.3 MB, free: 8.273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.2563, allocations: 153.7 kB / 429.4 MB, free: 8.113 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.606e-05/0.2564, allocations: 33.7 kB / 429.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.2565, allocations: 144.8 kB / 429.6 MB, free: 7.926 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.435e-05/0.2565, allocations: 71.41 kB / 429.7 MB, free: 7.855 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.2567, allocations: 77.67 kB / 429.7 MB, free: 7.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.2568, allocations: 330.8 kB / 430.1 MB, free: 7.441 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.2569, allocations: 59.97 kB / 430.1 MB, free: 7.383 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.2571, allocations: 144.4 kB / 430.3 MB, free: 7.211 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003003/0.2574, allocations: 204.8 kB / 430.5 MB, free: 6.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.145e-06/0.2574, allocations: 0 / 430.5 MB, free: 6.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004242/0.2579, allocations: 257.4 kB / 430.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.2579, allocations: 8 kB / 430.7 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.2579, allocations: 0 / 430.7 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.2579, allocations: 4 kB / 430.7 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.2581, allocations: 35.92 kB / 430.8 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/0.2581, allocations: 11.92 kB / 430.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.2582, allocations: 27.84 kB / 430.8 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.232e-05/0.2582, allocations: 12 kB / 430.8 MB, free: 6.625 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.0001744/0.2584, allocations: 169.8 kB / 431 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.31e-05/0.2584, allocations: 15.91 kB / 431 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003625/0.2588, allocations: 186.5 kB / 431.2 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.2588, allocations: 4 kB / 431.2 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2588, allocations: 0 / 431.2 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.2588, allocations: 3.984 kB / 431.2 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007921/0.2596, allocations: 0.5509 MB / 431.7 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2596, allocations: 0 / 431.7 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.2e-05/0.2597, allocations: 19.98 kB / 431.8 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.2597, allocations: 3.938 kB / 431.8 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.2597, allocations: 12 kB / 431.8 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.2597, allocations: 0 / 431.8 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2597, allocations: 0 / 431.8 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003656/0.2601, allocations: 300.3 kB / 432.1 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.321e-05/0.2601, allocations: 15.83 kB / 432.1 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.929e-05/0.2601, allocations: 8 kB / 432.1 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.097e-05/0.2602, allocations: 4 kB / 432.1 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.39e-05/0.2603, allocations: 27.95 kB / 432.1 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/0.2603, allocations: 4 kB / 432.1 MB, free: 5.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.833e-05/0.2604, allocations: 101.6 kB / 432.2 MB, free: 5.125 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2604, allocations: 0 / 432.2 MB, free: 5.125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003287/0.2607, allocations: 59.84 kB / 432.3 MB, free: 5.066 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,transition1.enableFire,step.active,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.000735/0.2615, allocations: 0.8261 MB / 433.1 MB, free: 4.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003317/0.2618, allocations: 171.8 kB / 433.3 MB, free: 4.043 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.2618, allocations: 11.88 kB / 433.3 MB, free: 4.031 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000133/0.2619, allocations: 75.84 kB / 433.4 MB, free: 3.957 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.2622, allocations: 32.59 kB / 433.4 MB, free: 3.926 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00247/0.2647, allocations: 2.079 MB / 435.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001383/0.2648, allocations: 125.3 kB / 435.6 MB, free: 1.566 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.159e-05/0.2649, allocations: 25.92 kB / 435.6 MB, free: 1.535 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.2651, allocations: 63.41 kB / 435.7 MB, free: 1.473 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2651, allocations: 3.938 kB / 435.7 MB, free: 1.469 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02485/0.2899, allocations: 4.067 MB / 439.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.05, allocations: 13.88 kB / 439.8 MB, free: 13.55 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.36630812403746] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.211642470094375 11.238468366 10.981694255 Calling exit ...