Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.006913/0.006913, allocations: 110.4 kB / 21.97 MB, free: 5.195 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001561/0.001561, allocations: 215.5 kB / 25.28 MB, free: 3.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.485/1.485, allocations: 207.6 MB / 236 MB, free: 10.87 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 47.92 kB / 348 MB, free: 10.16 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2871, allocations: 49.16 MB / 397.1 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002736/0.2899, allocations: 1.672 MB / 398.8 MB, free: 7.883 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006185/0.2905, allocations: 260.4 kB / 399 MB, free: 7.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.67e-05/0.2906, allocations: 7.594 kB / 399 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001251/0.2907, allocations: 30.98 kB / 399.1 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.261e-05/0.2908, allocations: 22.31 kB / 399.1 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004107/0.2912, allocations: 121.8 kB / 399.2 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002976/0.2915, allocations: 277 kB / 399.5 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002569/0.2917, allocations: 154.2 kB / 399.6 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.523e-05/0.2918, allocations: 94.14 kB / 399.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.292, allocations: 103.1 kB / 399.8 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.077e-05/0.292, allocations: 27.5 kB / 399.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.832e-05/0.2921, allocations: 33.67 kB / 399.9 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.686e-05/0.2921, allocations: 59.86 kB / 399.9 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.397e-05/0.2922, allocations: 98.53 kB / 400 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.2925, allocations: 256.1 kB / 400.3 MB, free: 7.066 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2925, allocations: 1.734 kB / 400.3 MB, free: 7.066 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.2925, allocations: 0 / 400.3 MB, free: 7.066 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.2925, allocations: 0 / 400.3 MB, free: 7.066 MB / 318.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.0006027/0.2931, allocations: 418.4 kB / 400.7 MB, free: 6.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.2932, allocations: 17.17 kB / 400.7 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.975e-05/0.2932, allocations: 7.406 kB / 400.7 MB, free: 6.703 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.602e-05/0.2933, allocations: 65.42 kB / 400.8 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.099e-05/0.2933, allocations: 24.98 kB / 400.8 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002804/0.2936, allocations: 179.9 kB / 401 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.941e-05/0.2936, allocations: 20.92 kB / 401 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.542e-05/0.2937, allocations: 32.62 kB / 401 MB, free: 6.445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005054/0.2942, allocations: 274.8 kB / 401.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.2942, allocations: 1.188 kB / 401.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.432e-05/0.2942, allocations: 11.39 kB / 401.3 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.2942, allocations: 6.656 kB / 401.3 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000318/0.2946, allocations: 164 kB / 401.5 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.2956, allocations: 0.9404 MB / 402.4 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.2959, allocations: 143.2 kB / 402.6 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.296, allocations: 67.67 kB / 402.6 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.2961, allocations: 1.469 kB / 402.6 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002101/0.2963, allocations: 124.6 kB / 402.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.174e-06/0.2963, allocations: 0 / 402.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004658/0.2967, allocations: 211.2 kB / 403 MB, free: 5.184 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.2968, allocations: 56.33 kB / 403 MB, free: 5.121 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.2969, allocations: 159.9 kB / 403.2 MB, free: 4.992 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.2969, allocations: 42.83 kB / 403.2 MB, free: 4.949 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.01e-05/0.297, allocations: 145.9 kB / 403.4 MB, free: 4.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.395e-05/0.297, allocations: 55.97 kB / 403.4 MB, free: 4.777 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.2971, allocations: 78.31 kB / 403.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.561e-05/0.2972, allocations: 331.3 kB / 403.8 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.2974, allocations: 62.59 kB / 403.9 MB, free: 4.387 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.2976, allocations: 136.1 kB / 404 MB, free: 4.281 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.2979, allocations: 189.9 kB / 404.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2979, allocations: 0 / 404.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003713/0.2982, allocations: 253.2 kB / 404.4 MB, free: 4.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.2983, allocations: 6.688 kB / 404.5 MB, free: 4.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.2983, allocations: 2.156 kB / 404.5 MB, free: 4.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.2983, allocations: 9.312 kB / 404.5 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001369/0.2984, allocations: 34.5 kB / 404.5 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.2984, allocations: 9.375 kB / 404.5 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.731e-05/0.2985, allocations: 27.84 kB / 404.5 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.174e-05/0.2986, allocations: 19.84 kB / 404.6 MB, free: 3.977 MB / 318.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001205/0.2987, allocations: 156.9 kB / 404.7 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.465e-05/0.2987, allocations: 14.41 kB / 404.7 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003304/0.299, allocations: 190.4 kB / 404.9 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.299, allocations: 2.781 kB / 404.9 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.299, allocations: 3.984 kB / 404.9 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.2991, allocations: 0.8438 kB / 404.9 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006299/0.2997, allocations: 0.5664 MB / 405.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.2997, allocations: 1.156 kB / 405.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.301e-05/0.2998, allocations: 26.75 kB / 405.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.2998, allocations: 1.094 kB / 405.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.2998, allocations: 4.562 kB / 405.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.2998, allocations: 1.219 kB / 405.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2998, allocations: 0 / 405.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002709/0.3001, allocations: 272.5 kB / 405.8 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.131e-05/0.3001, allocations: 24.61 kB / 405.8 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.59e-05/0.3001, allocations: 2.641 kB / 405.8 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.298e-05/0.3002, allocations: 12.97 kB / 405.8 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.462e-05/0.3003, allocations: 25.92 kB / 405.8 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.3003, allocations: 5.422 kB / 405.9 MB, free: 3.078 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.707e-05/0.3003, allocations: 104.7 kB / 406 MB, free: 2.992 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3003, allocations: 0 / 406 MB, free: 2.992 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003163/0.3007, allocations: 51.39 kB / 406 MB, free: 2.977 MB / 318.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: 19 (step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0004929/0.3012, allocations: 0.8178 MB / 406.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003418/0.3015, allocations: 172.7 kB / 407 MB, free: 2.199 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3015, allocations: 1.281 kB / 407 MB, free: 2.199 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.3016, allocations: 69.64 kB / 407.1 MB, free: 2.18 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003275/0.302, allocations: 19.91 kB / 407.1 MB, free: 2.172 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.304, allocations: 2.072 MB / 409.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003387/0.3043, allocations: 0.7401 MB / 409.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.099e-05/0.3044, allocations: 34.16 kB / 409.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.3045, allocations: 63.66 kB / 410 MB, free: 15.76 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3045, allocations: 0 / 410 MB, free: 15.76 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02566/0.3302, allocations: 4.025 MB / 414 MB, free: 14.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.65, allocations: 11.86 kB / 414 MB, free: 14.2 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --stepSize=0.000998203 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.107943698996678] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.812047370010987 11.827907116 11.532095789 Calling exit ...