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.001267/0.001267, allocations: 118.6 kB / 18.5 MB, free: 4.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.001353/0.001353, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.413/1.413, allocations: 230.4 MB / 254.7 MB, free: 14.84 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_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.001907/0.001907, allocations: 63.91 kB / 373.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1053, allocations: 53.32 MB / 426.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002862/0.1082, allocations: 1.687 MB / 428.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006892/0.1088, allocations: 287.1 kB / 428.8 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.797e-05/0.1089, allocations: 4 kB / 428.8 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001504/0.1091, allocations: 35.61 kB / 428.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.685e-05/0.1091, allocations: 15.8 kB / 428.9 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000369/0.1095, allocations: 123.8 kB / 429 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000328/0.1098, allocations: 267.6 kB / 429.3 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002743/0.1101, allocations: 158.9 kB / 429.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.1102, allocations: 99.62 kB / 429.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.1104, allocations: 107.6 kB / 429.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.352e-05/0.1104, allocations: 24 kB / 429.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.734e-05/0.1105, allocations: 24 kB / 429.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.533e-05/0.1105, allocations: 59.83 kB / 429.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.1106, allocations: 107.5 kB / 429.8 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003033/0.1109, allocations: 258.9 kB / 430.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1109, allocations: 0 / 430.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1109, allocations: 0 / 430.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.1109, allocations: 0 / 430.1 MB, free: 1.605 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007204/0.1117, allocations: 0.4944 MB / 430.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.1117, allocations: 11.97 kB / 430.6 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.605e-05/0.1118, allocations: 62.72 kB / 430.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002341/0.112, allocations: 36.78 kB / 430.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003092/0.1123, allocations: 228.1 kB / 430.9 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.947e-05/0.1124, allocations: 24.92 kB / 430.9 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.118e-05/0.1124, allocations: 28.38 kB / 431 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004344/0.1128, allocations: 274.5 kB / 431.2 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.1129, allocations: 3.938 kB / 431.2 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.246e-05/0.1129, allocations: 12 kB / 431.2 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.1129, allocations: 4 kB / 431.2 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002993/0.1132, allocations: 161.6 kB / 431.4 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1733/0.2865, allocations: 0.9661 MB / 432.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002584/0.2867, allocations: 150.1 kB / 432.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.2868, allocations: 70.98 kB / 432.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.2868, allocations: 7.094 kB / 432.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001989/0.287, allocations: 140 kB / 432.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.053e-06/0.287, allocations: 0 / 432.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004276/0.2875, allocations: 220.3 kB / 432.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.2875, allocations: 89.03 kB / 433 MB, free: 10.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.385e-05/0.2876, allocations: 152.3 kB / 433.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.2876, allocations: 44.89 kB / 433.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.868e-05/0.2877, allocations: 140 kB / 433.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.55e-05/0.2877, allocations: 62.66 kB / 433.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.809e-05/0.2878, allocations: 80.33 kB / 433.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.665e-05/0.2878, allocations: 326.8 kB / 433.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.288, allocations: 65 kB / 433.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.2881, allocations: 149.5 kB / 434 MB, free: 9.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002111/0.2883, allocations: 192.1 kB / 434.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2883, allocations: 1.219 kB / 434.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003004/0.2886, allocations: 257.4 kB / 434.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.2886, allocations: 7.062 kB / 434.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2886, allocations: 9.375 kB / 434.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.2886, allocations: 2.344 kB / 434.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.2888, allocations: 35.44 kB / 434.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.2888, allocations: 4 kB / 434.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.566e-05/0.2889, allocations: 30.67 kB / 434.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.2889, allocations: 12.75 kB / 434.6 MB, free: 9.496 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.0001031/0.289, allocations: 165.8 kB / 434.7 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.191e-05/0.289, allocations: 14.22 kB / 434.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.223e-05/0.289, allocations: 19.11 kB / 434.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.2891, allocations: 4 kB / 434.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.2891, allocations: 0.5625 kB / 434.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.2891, allocations: 1.25 kB / 434.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005182/0.2896, allocations: 0.5771 MB / 435.3 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2896, allocations: 2.25 kB / 435.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.175e-05/0.2896, allocations: 17.91 kB / 435.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.2896, allocations: 1.469 kB / 435.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.2897, allocations: 8.75 kB / 435.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.2897, allocations: 3.062 kB / 435.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2897, allocations: 0 / 435.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002152/0.2899, allocations: 281.5 kB / 435.7 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.376e-05/0.2899, allocations: 93.94 kB / 435.7 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.483e-05/0.2899, allocations: 9.562 kB / 435.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.999e-05/0.29, allocations: 5.312 kB / 435.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.364e-05/0.2901, allocations: 27.31 kB / 435.8 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.2901, allocations: 10.59 kB / 435.8 MB, free: 8.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.654e-05/0.2901, allocations: 101.9 kB / 435.9 MB, free: 8.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2901, allocations: 1.25 kB / 435.9 MB, free: 8.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002787/0.2904, allocations: 51.53 kB / 435.9 MB, free: 8.668 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.0003688/0.2908, allocations: 0.8062 MB / 436.8 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000286/0.2911, allocations: 175.1 kB / 436.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2911, allocations: 0 / 436.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.2912, allocations: 75.14 kB / 437 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.2914, allocations: 25.91 kB / 437 MB, free: 7.988 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.293, allocations: 2.065 MB / 439.1 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001387/0.2932, allocations: 0.7354 MB / 439.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.992e-05/0.2932, allocations: 26.48 kB / 439.9 MB, free: 5.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.06e-05/0.2933, allocations: 60.73 kB / 439.9 MB, free: 5.602 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2933, allocations: 0 / 439.9 MB, free: 5.602 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02414/0.3175, allocations: 3.541 MB / 443.5 MB, free: 5.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.955/8.272, allocations: 1.719 kB / 443.5 MB, free: 5.098 MB / 350.1 MB " [Timeout remaining time 652] (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 --stepSize=0.00109737 --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: 10.512010094709694] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.345563239883631 8.362071786 8.248244475 Calling exit ...