Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001403/0.001403, allocations: 105.7 kB / 19.74 MB, free: 2.453 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.001601/0.001601, allocations: 214.7 kB / 22.92 MB, free: 5.195 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.286/1.286, allocations: 230.5 MB / 256.4 MB, free: 8.258 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_Variant2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 67.89 kB / 376.1 MB, free: 4.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.22, allocations: 53.31 MB / 429.4 MB, free: 7.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002596/0.2226, allocations: 1.705 MB / 431.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006068/0.2232, allocations: 295.1 kB / 431.4 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.051e-05/0.2233, allocations: 4 kB / 431.4 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.2234, allocations: 27.69 kB / 431.4 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.319e-05/0.2234, allocations: 19.8 kB / 431.4 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003451/0.2238, allocations: 119.8 kB / 431.5 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003015/0.2241, allocations: 263.6 kB / 431.8 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002602/0.2244, allocations: 166.9 kB / 431.9 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.2245, allocations: 87.7 kB / 432 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001399/0.2246, allocations: 103.5 kB / 432.1 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.519e-05/0.2246, allocations: 24 kB / 432.2 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.238e-05/0.2247, allocations: 31.98 kB / 432.2 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.801e-05/0.2248, allocations: 63.81 kB / 432.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.818e-05/0.2249, allocations: 95.53 kB / 432.3 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002933/0.2252, allocations: 259.3 kB / 432.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2252, allocations: 4 kB / 432.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2252, allocations: 7.938 kB / 432.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.2252, allocations: 3.938 kB / 432.6 MB, free: 4.207 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.000636/0.2258, allocations: 498.3 kB / 433.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.2259, allocations: 8.031 kB / 433.1 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.099e-05/0.2259, allocations: 58.73 kB / 433.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002312/0.2261, allocations: 40.77 kB / 433.2 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.2264, allocations: 232 kB / 433.4 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.598e-05/0.2264, allocations: 24.92 kB / 433.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.785e-05/0.2265, allocations: 28.38 kB / 433.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004163/0.2269, allocations: 274.5 kB / 433.8 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.2269, allocations: 3.938 kB / 433.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.342e-05/0.2269, allocations: 8 kB / 433.8 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.2269, allocations: 8 kB / 433.8 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002793/0.2272, allocations: 161.6 kB / 433.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.2283, allocations: 0.9635 MB / 434.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002717/0.2286, allocations: 161.3 kB / 435.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.2287, allocations: 77.62 kB / 435.1 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.2287, allocations: 4 kB / 435.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001949/0.2289, allocations: 137.1 kB / 435.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.252e-06/0.2289, allocations: 0 / 435.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003938/0.2293, allocations: 224.2 kB / 435.5 MB, free: 1.105 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.2293, allocations: 81.11 kB / 435.6 MB, free: 1.008 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.2295, allocations: 153.7 kB / 435.7 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.2295, allocations: 41.7 kB / 435.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.917e-05/0.2296, allocations: 140.8 kB / 435.9 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.905e-05/0.2296, allocations: 59.64 kB / 435.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.246e-05/0.2297, allocations: 85.64 kB / 436 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.2298, allocations: 334.8 kB / 436.4 MB, free: 180 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.23, allocations: 67.75 kB / 436.4 MB, free: 112 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001712/0.2301, allocations: 136.5 kB / 436.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002503/0.2304, allocations: 196.3 kB / 436.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2304, allocations: 0 / 436.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003561/0.2307, allocations: 249.3 kB / 437 MB, free: 15.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.2308, allocations: 8 kB / 437 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2308, allocations: 288 / 437 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.2308, allocations: 8 kB / 437 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.2309, allocations: 35.86 kB / 437 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.2309, allocations: 4 kB / 437 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.677e-05/0.231, allocations: 35.77 kB / 437.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.639e-05/0.231, allocations: 8 kB / 437.1 MB, free: 15.38 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.0001418/0.2312, allocations: 161.7 kB / 437.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.331e-05/0.2312, allocations: 11.94 kB / 437.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.444e-05/0.2312, allocations: 20.84 kB / 437.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.2313, allocations: 11.94 kB / 437.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2313, allocations: 0 / 437.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.2313, allocations: 0 / 437.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006611/0.2319, allocations: 0.5713 MB / 437.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.2319, allocations: 3.984 kB / 437.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.549e-05/0.232, allocations: 19.88 kB / 437.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.232, allocations: 0 / 437.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.232, allocations: 11.94 kB / 437.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.232, allocations: 0 / 437.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.232, allocations: 4 kB / 437.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003031/0.2323, allocations: 287.5 kB / 438.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.871e-05/0.2324, allocations: 92.95 kB / 438.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.2324, allocations: 7.922 kB / 438.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.428e-05/0.2325, allocations: 8 kB / 438.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.13e-05/0.2325, allocations: 23.97 kB / 438.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.2326, allocations: 8 kB / 438.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.163e-05/0.2326, allocations: 100.2 kB / 438.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2326, allocations: 0 / 438.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002739/0.2329, allocations: 47.89 kB / 438.5 MB, free: 13.89 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.0005754/0.2335, allocations: 0.8145 MB / 439.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002926/0.2338, allocations: 172 kB / 439.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2338, allocations: 0 / 439.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000123/0.2339, allocations: 79.16 kB / 439.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.2342, allocations: 23.98 kB / 439.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002102/0.2363, allocations: 2.075 MB / 441.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.2366, allocations: 0.7326 MB / 442.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.704e-05/0.2366, allocations: 25.94 kB / 442.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.894e-05/0.2367, allocations: 55.42 kB / 442.4 MB, free: 9.715 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2367, allocations: 0 / 442.4 MB, free: 9.715 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02323/0.26, allocations: 3.548 MB / 446 MB, free: 6.258 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.054/7.314, allocations: 0 / 446 MB, free: 6.258 MB / 350.1 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.388229681004304]