Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.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.001313/0.001313, allocations: 106.5 kB / 19.74 MB, free: 2.566 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.001554/0.001554, allocations: 222.1 kB / 22.92 MB, free: 5.535 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.272/1.272, allocations: 230.5 MB / 256.4 MB, free: 8.438 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,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample",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.001824/0.001824, allocations: 71.88 kB / 376.1 MB, free: 4.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2115, allocations: 53.32 MB / 429.4 MB, free: 7.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002388/0.2139, allocations: 1.497 MB / 430.9 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006016/0.2145, allocations: 283.2 kB / 431.2 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.106e-05/0.2146, allocations: 11.94 kB / 431.2 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.2147, allocations: 27.73 kB / 431.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.889e-05/0.2148, allocations: 11.81 kB / 431.2 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003371/0.2151, allocations: 119.8 kB / 431.3 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002856/0.2154, allocations: 251.6 kB / 431.6 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002386/0.2156, allocations: 138.4 kB / 431.7 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.313e-05/0.2157, allocations: 79.77 kB / 431.8 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.2159, allocations: 107.5 kB / 431.9 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.602e-05/0.2159, allocations: 27.94 kB / 431.9 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.835e-05/0.216, allocations: 27.98 kB / 431.9 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.166e-05/0.216, allocations: 55.89 kB / 432 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.71e-05/0.2161, allocations: 95.47 kB / 432.1 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002812/0.2164, allocations: 247.4 kB / 432.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.2164, allocations: 0 / 432.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2164, allocations: 0 / 432.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.2164, allocations: 0 / 432.3 MB, free: 4.484 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006213/0.217, allocations: 494.3 kB / 432.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.2171, allocations: 8.031 kB / 432.8 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.321e-05/0.2171, allocations: 54.73 kB / 432.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002289/0.2174, allocations: 32.81 kB / 432.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002531/0.2176, allocations: 232 kB / 433.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.516e-05/0.2176, allocations: 20.94 kB / 433.1 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.2177, allocations: 28.36 kB / 433.2 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003737/0.2181, allocations: 236 kB / 433.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.2181, allocations: 7.938 kB / 433.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.208e-05/0.2181, allocations: 8 kB / 433.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.2181, allocations: 4 kB / 433.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002707/0.2184, allocations: 161.6 kB / 433.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009025/0.2193, allocations: 0.6897 MB / 434.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/0.2195, allocations: 154.8 kB / 434.4 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.2197, allocations: 74.27 kB / 434.5 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.2197, allocations: 7.938 kB / 434.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001834/0.2199, allocations: 115.3 kB / 434.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.512e-06/0.2199, allocations: 0 / 434.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003882/0.2203, allocations: 216.8 kB / 434.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/0.2203, allocations: 59.41 kB / 434.9 MB, free: 1.723 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.2204, allocations: 153.2 kB / 435 MB, free: 1.566 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.03e-05/0.2204, allocations: 33.7 kB / 435.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.532e-05/0.2205, allocations: 128.9 kB / 435.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.706e-05/0.2206, allocations: 67.47 kB / 435.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.716e-05/0.2207, allocations: 74.02 kB / 435.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.2208, allocations: 322.8 kB / 435.6 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.2209, allocations: 64.62 kB / 435.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001502/0.2211, allocations: 128.1 kB / 435.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002305/0.2213, allocations: 178.6 kB / 436 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2213, allocations: 3.938 kB / 436 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000347/0.2217, allocations: 245.5 kB / 436.3 MB, free: 272 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.2217, allocations: 8.031 kB / 436.3 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.2217, allocations: 4 kB / 436.3 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.2217, allocations: 0 / 436.3 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.2218, allocations: 31.86 kB / 436.3 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.2218, allocations: 4 kB / 436.3 MB, free: 224 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.001e-05/0.2219, allocations: 31.78 kB / 436.3 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.2219, allocations: 12 kB / 436.3 MB, free: 180 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001382/0.2221, allocations: 165.7 kB / 436.5 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.923e-05/0.2221, allocations: 15.94 kB / 436.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.476e-05/0.2221, allocations: 20.84 kB / 436.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2221, allocations: 3.984 kB / 436.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.2221, allocations: 0 / 436.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2221, allocations: 0 / 436.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006476/0.2228, allocations: 0.5491 MB / 437.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.2228, allocations: 0 / 437.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.906e-05/0.2229, allocations: 12 kB / 437.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.2229, allocations: 4 kB / 437.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.2229, allocations: 11.98 kB / 437.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2229, allocations: 0 / 437.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2229, allocations: 0 / 437.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002823/0.2232, allocations: 271.8 kB / 437.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.805e-05/0.2232, allocations: 89 kB / 437.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.553e-05/0.2232, allocations: 11.98 kB / 437.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-05/0.2233, allocations: 4 kB / 437.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.809e-05/0.2234, allocations: 23.91 kB / 437.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.2234, allocations: 12 kB / 437.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.438e-05/0.2234, allocations: 99.27 kB / 437.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2234, allocations: 0 / 437.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002659/0.2237, allocations: 51.84 kB / 437.7 MB, free: 14.74 MB / 350.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (24): * Single equations (assignments): 20 * 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.0005606/0.2243, allocations: 0.797 MB / 438.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003015/0.2246, allocations: 172.1 kB / 438.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2246, allocations: 0 / 438.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.2247, allocations: 71.77 kB / 438.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/0.225, allocations: 27.02 kB / 438.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/0.227, allocations: 2.006 MB / 440.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.2273, allocations: 0.7284 MB / 441.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.564e-05/0.2274, allocations: 21.95 kB / 441.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.782e-05/0.2275, allocations: 59.41 kB / 441.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2275, allocations: 0 / 441.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02352/0.251, allocations: 3.413 MB / 445 MB, free: 7.355 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.119/7.37, allocations: 7.188 kB / 445 MB, free: 7.352 MB / 350.1 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.404411597002763]