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.001846/0.001846, allocations: 116.4 kB / 18.5 MB, free: 4.535 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.002178/0.002178, allocations: 212.9 kB / 21.46 MB, free: 1.586 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.446/1.446, allocations: 230.4 MB / 254.7 MB, free: 14.86 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-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.001926/0.001926, allocations: 67.89 kB / 373.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1049, allocations: 53.31 MB / 426.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002601/0.1075, allocations: 1.508 MB / 428.4 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000682/0.1082, allocations: 279.2 kB / 428.6 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.398e-05/0.1083, allocations: 4 kB / 428.6 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001333/0.1084, allocations: 31.67 kB / 428.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.247e-05/0.1085, allocations: 15.81 kB / 428.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003634/0.1088, allocations: 111.8 kB / 428.8 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003248/0.1092, allocations: 259.5 kB / 429 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002672/0.1094, allocations: 138.4 kB / 429.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.997e-05/0.1095, allocations: 83.7 kB / 429.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001399/0.1097, allocations: 103.6 kB / 429.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.923e-05/0.1097, allocations: 24 kB / 429.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.989e-05/0.1098, allocations: 24 kB / 429.4 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.387e-05/0.1098, allocations: 59.83 kB / 429.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.1099, allocations: 99.45 kB / 429.6 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003038/0.1102, allocations: 246.9 kB / 429.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1103, allocations: 0 / 429.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1103, allocations: 0 / 429.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.1103, allocations: 0 / 429.8 MB, free: 1.883 MB / 350.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.0006758/0.1109, allocations: 494.3 kB / 430.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.111, allocations: 8.031 kB / 430.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.163e-05/0.111, allocations: 58.73 kB / 430.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002286/0.1113, allocations: 28.83 kB / 430.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003181/0.1116, allocations: 232.1 kB / 430.6 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.85e-05/0.1116, allocations: 20.94 kB / 430.6 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.555e-05/0.1117, allocations: 24.38 kB / 430.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004177/0.1121, allocations: 240 kB / 430.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.1121, allocations: 7.938 kB / 430.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.357e-05/0.1121, allocations: 11.98 kB / 430.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.1121, allocations: 4 kB / 430.9 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002905/0.1124, allocations: 157.7 kB / 431.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1716/0.2841, allocations: 0.6816 MB / 431.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.2844, allocations: 158.1 kB / 431.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.2845, allocations: 66.02 kB / 432 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.2845, allocations: 6.734 kB / 432 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001947/0.2847, allocations: 114.7 kB / 432.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.335e-06/0.2847, allocations: 0 / 432.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003991/0.2851, allocations: 219.5 kB / 432.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.2851, allocations: 58.84 kB / 432.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.468e-05/0.2852, allocations: 149.5 kB / 432.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.2852, allocations: 33.83 kB / 432.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.888e-05/0.2853, allocations: 137.6 kB / 432.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.918e-05/0.2853, allocations: 58.55 kB / 432.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.211e-05/0.2854, allocations: 79.56 kB / 432.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.125e-05/0.2855, allocations: 325.9 kB / 433.1 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.2856, allocations: 59.08 kB / 433.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.2857, allocations: 132 kB / 433.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002024/0.2859, allocations: 184 kB / 433.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2859, allocations: 0 / 433.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003279/0.2863, allocations: 237.3 kB / 433.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.2863, allocations: 8 kB / 433.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2863, allocations: 0 / 433.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.2863, allocations: 6.375 kB / 433.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.2864, allocations: 32.06 kB / 433.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.2864, allocations: 5.281 kB / 433.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.096e-05/0.2865, allocations: 29.44 kB / 433.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.2865, allocations: 16.72 kB / 433.8 MB, free: 9.688 MB / 350.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.0001009/0.2866, allocations: 152.4 kB / 434 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.849e-05/0.2866, allocations: 14.12 kB / 434 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.03e-05/0.2867, allocations: 20.52 kB / 434 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.2867, allocations: 4.656 kB / 434 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.2867, allocations: 0.5625 kB / 434 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2867, allocations: 0 / 434 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005358/0.2872, allocations: 0.5503 MB / 434.6 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2872, allocations: 3.531 kB / 434.6 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.753e-05/0.2873, allocations: 21.94 kB / 434.6 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.2873, allocations: 5.062 kB / 434.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.2873, allocations: 1.312 kB / 434.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.2873, allocations: 4.781 kB / 434.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.2873, allocations: 2.656 kB / 434.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002267/0.2876, allocations: 266.5 kB / 434.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.653e-05/0.2876, allocations: 97.67 kB / 434.9 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.2876, allocations: 8.688 kB / 435 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.139e-05/0.2877, allocations: 9.531 kB / 435 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.782e-05/0.2878, allocations: 19.19 kB / 435 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.2878, allocations: 10.58 kB / 435 MB, free: 9.004 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.597e-05/0.2878, allocations: 101.5 kB / 435.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2878, allocations: 0 / 435.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002758/0.2881, allocations: 45.47 kB / 435.1 MB, free: 8.926 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.0003816/0.2885, allocations: 0.8046 MB / 435.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002721/0.2887, allocations: 165.4 kB / 436.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2887, allocations: 3.406 kB / 436.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.2888, allocations: 74.31 kB / 436.2 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002708/0.2891, allocations: 16.77 kB / 436.2 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.2907, allocations: 1.994 MB / 438.2 MB, free: 6.855 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000134/0.2909, allocations: 0.7298 MB / 438.9 MB, free: 6.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.09e-05/0.291, allocations: 23.94 kB / 438.9 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.95e-05/0.291, allocations: 61.72 kB / 439 MB, free: 6.113 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.291, allocations: 0 / 439 MB, free: 6.113 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02696/0.318, allocations: 3.431 MB / 442.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.969/8.287, allocations: 6 kB / 442.4 MB, free: 5.609 MB / 350.1 MB " [Timeout remaining time 652] (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 --stepSize=0.00109737 --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: 10.582642605062574] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.356211049016565 8.377239536 8.262799457 Calling exit ...