Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001391/0.001391, allocations: 105.1 kB / 21.22 MB, free: 0.6523 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.001566/0.001566, allocations: 212.1 kB / 24.52 MB, free: 3.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.569/1.569, allocations: 230.5 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 59.89 kB / 378.5 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2908, allocations: 53.41 MB / 431.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003211/0.294, allocations: 1.659 MB / 433.5 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007332/0.2948, allocations: 291.2 kB / 433.8 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001301/0.2949, allocations: 7.938 kB / 433.8 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001396/0.295, allocations: 19.73 kB / 433.9 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.322e-05/0.2951, allocations: 27.73 kB / 433.9 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004396/0.2955, allocations: 119.8 kB / 434 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004365/0.296, allocations: 283.4 kB / 434.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003682/0.2963, allocations: 163.4 kB / 434.4 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.2965, allocations: 95.69 kB / 434.5 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.2966, allocations: 91.61 kB / 434.6 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.309e-05/0.2967, allocations: 24 kB / 434.6 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.901e-05/0.2968, allocations: 31.94 kB / 434.7 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.2969, allocations: 63.81 kB / 434.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.297, allocations: 83.59 kB / 434.8 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004334/0.2974, allocations: 259.7 kB / 435.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.2974, allocations: 0 / 435.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2974, allocations: 0 / 435.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.2975, allocations: 8 kB / 435.1 MB, free: 3.273 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.0008076/0.2983, allocations: 421.2 kB / 435.5 MB, free: 2.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.2983, allocations: 8.031 kB / 435.5 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.176e-05/0.2983, allocations: 8.688 kB / 435.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.874e-05/0.2984, allocations: 62.72 kB / 435.6 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002291/0.2986, allocations: 32.78 kB / 435.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003353/0.299, allocations: 174.1 kB / 435.8 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.486e-05/0.299, allocations: 24.88 kB / 435.8 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.726e-05/0.299, allocations: 28.38 kB / 435.8 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004937/0.2995, allocations: 277.5 kB / 436.1 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.2996, allocations: 0 / 436.1 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.422e-05/0.2996, allocations: 8 kB / 436.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.2996, allocations: 8 kB / 436.1 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003179/0.2999, allocations: 165.6 kB / 436.3 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.3011, allocations: 0.8703 MB / 437.1 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003038/0.3014, allocations: 163.7 kB / 437.3 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.3016, allocations: 69.69 kB / 437.4 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.3016, allocations: 4 kB / 437.4 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002405/0.3018, allocations: 144 kB / 437.5 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.814e-06/0.3018, allocations: 0 / 437.5 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004588/0.3023, allocations: 229.3 kB / 437.7 MB, free: 440 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.39e-05/0.3024, allocations: 81.11 kB / 437.8 MB, free: 340 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.3025, allocations: 157.7 kB / 438 MB, free: 172 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.499e-05/0.3025, allocations: 37.7 kB / 438 MB, free: 128 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.3027, allocations: 152.9 kB / 438.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.453e-05/0.3027, allocations: 51.59 kB / 438.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.3029, allocations: 81.64 kB / 438.3 MB, free: 15.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.303, allocations: 334.7 kB / 438.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.3031, allocations: 63.75 kB / 438.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.3033, allocations: 136.5 kB / 438.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000291/0.3036, allocations: 200.2 kB / 439 MB, free: 15.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3036, allocations: 4 kB / 439 MB, free: 15.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004355/0.304, allocations: 253.3 kB / 439.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.3041, allocations: 4 kB / 439.3 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.3041, allocations: 4 kB / 439.3 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.3041, allocations: 4 kB / 439.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.3043, allocations: 31.92 kB / 439.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.3043, allocations: 8.281 kB / 439.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.3044, allocations: 35.72 kB / 439.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.3044, allocations: 15.94 kB / 439.4 MB, free: 14.68 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.0001996/0.3046, allocations: 157.8 kB / 439.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.9e-05/0.3047, allocations: 11.89 kB / 439.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.994e-05/0.3047, allocations: 20.94 kB / 439.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.3047, allocations: 3.984 kB / 439.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.3047, allocations: 4 kB / 439.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3047, allocations: 0 / 439.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008884/0.3056, allocations: 0.5398 MB / 440.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3056, allocations: 0 / 440.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.65e-05/0.3057, allocations: 12 kB / 440.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.734e-06/0.3057, allocations: 3.938 kB / 440.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.778e-05/0.3057, allocations: 15.92 kB / 440.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3057, allocations: 0 / 440.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.3057, allocations: 3.984 kB / 440.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003526/0.3061, allocations: 272.1 kB / 440.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.879e-05/0.3061, allocations: 19.84 kB / 440.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.599e-05/0.3062, allocations: 11.92 kB / 440.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.075e-05/0.3063, allocations: 15.94 kB / 440.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.739e-05/0.3063, allocations: 19.97 kB / 440.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.3064, allocations: 11.98 kB / 440.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.351e-05/0.3064, allocations: 91.27 kB / 440.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3064, allocations: 4 kB / 440.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003337/0.3068, allocations: 47.89 kB / 440.6 MB, free: 13.34 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.0006669/0.3074, allocations: 0.8184 MB / 441.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003498/0.3078, allocations: 176.8 kB / 441.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3078, allocations: 0 / 441.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.3079, allocations: 75.77 kB / 441.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.3082, allocations: 18.81 kB / 441.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002684/0.3109, allocations: 2.071 MB / 443.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001511/0.3111, allocations: 129.7 kB / 443.9 MB, free: 9.875 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.429e-05/0.3112, allocations: 21.95 kB / 443.9 MB, free: 9.852 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.3113, allocations: 59.41 kB / 444 MB, free: 9.793 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3113, allocations: 0 / 444 MB, free: 9.793 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02326/0.3345, allocations: 3.855 MB / 447.8 MB, free: 6.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.09, allocations: 11.03 kB / 447.8 MB, free: 6.062 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.69095392699819] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.26012629806064 11.275107857 10.974520364 Calling exit ...