Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001787/0.001792, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002961/0.002961, allocations: 194.6 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.63/1.63, allocations: 205.1 MB / 222.4 MB, free: 4.629 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 52.39 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2989, allocations: 46.63 MB / 325.3 MB, free: 1.988 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002663/0.3016, allocations: 1.688 MB / 327 MB, free: 0.6484 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005994/0.3022, allocations: 260.9 kB / 327.2 MB, free: 456 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.3024, allocations: 7.656 kB / 327.2 MB, free: 452 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.3025, allocations: 28.33 kB / 327.3 MB, free: 424 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.184e-05/0.3026, allocations: 15.62 kB / 327.3 MB, free: 412 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003416/0.3029, allocations: 112.1 kB / 327.4 MB, free: 316 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002504/0.3032, allocations: 263.5 kB / 327.7 MB, free: 160 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000286/0.3035, allocations: 186.8 kB / 327.8 MB, free: 44 kB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001137/0.3036, allocations: 91.66 kB / 327.9 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.3037, allocations: 99.11 kB / 328 MB, free: 15.91 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.01e-05/0.3038, allocations: 22.97 kB / 328 MB, free: 15.91 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.284e-05/0.3039, allocations: 34.67 kB / 328.1 MB, free: 15.9 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.736e-05/0.3039, allocations: 53.75 kB / 328.1 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.3041, allocations: 105.2 kB / 328.2 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003011/0.3044, allocations: 231.3 kB / 328.5 MB, free: 15.6 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3044, allocations: 0 / 328.5 MB, free: 15.6 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3044, allocations: 0 / 328.5 MB, free: 15.6 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.3044, allocations: 1.438 kB / 328.5 MB, free: 15.6 MB / 270.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.0007371/0.3052, allocations: 498.3 kB / 328.9 MB, free: 15.12 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.3052, allocations: 9.906 kB / 329 MB, free: 15.12 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.066e-05/0.3053, allocations: 20.78 kB / 329 MB, free: 15.11 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002663/0.3056, allocations: 230.8 kB / 329.2 MB, free: 14.86 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.438e-05/0.3056, allocations: 25.22 kB / 329.2 MB, free: 14.85 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.403e-05/0.3057, allocations: 26.53 kB / 329.3 MB, free: 14.84 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004654/0.3061, allocations: 275.8 kB / 329.5 MB, free: 14.64 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.3062, allocations: 4.125 kB / 329.5 MB, free: 14.64 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.3062, allocations: 18.55 kB / 329.5 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.3062, allocations: 6.406 kB / 329.6 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003072/0.3065, allocations: 166.2 kB / 329.7 MB, free: 14.55 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.3077, allocations: 0.9646 MB / 330.7 MB, free: 13.65 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002697/0.308, allocations: 160.9 kB / 330.8 MB, free: 13.56 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.3081, allocations: 72.98 kB / 330.9 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.3081, allocations: 3.188 kB / 330.9 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002702/0.3084, allocations: 116.8 kB / 331 MB, free: 13.43 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 2.465e-06/0.3084, allocations: 4 kB / 331 MB, free: 13.42 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004591/0.3089, allocations: 216.1 kB / 331.2 MB, free: 13.31 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.309, allocations: 59.88 kB / 331.3 MB, free: 13.24 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.3091, allocations: 155.2 kB / 331.4 MB, free: 13.1 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.181e-05/0.3091, allocations: 38.45 kB / 331.5 MB, free: 13.06 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.3092, allocations: 138.1 kB / 331.6 MB, free: 12.93 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.469e-05/0.3093, allocations: 64.25 kB / 331.7 MB, free: 12.88 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.3094, allocations: 81.69 kB / 331.8 MB, free: 12.82 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3096, allocations: 329.5 kB / 332.1 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.3097, allocations: 62.59 kB / 332.1 MB, free: 12.47 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.3099, allocations: 138.7 kB / 332.3 MB, free: 12.35 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002576/0.3101, allocations: 193 kB / 332.5 MB, free: 12.2 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3101, allocations: 0 / 332.5 MB, free: 12.2 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003961/0.3105, allocations: 251.5 kB / 332.7 MB, free: 12.06 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.3106, allocations: 5.719 kB / 332.7 MB, free: 12.06 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.3106, allocations: 2.594 kB / 332.7 MB, free: 12.06 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.3106, allocations: 3.969 kB / 332.7 MB, free: 12.06 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/0.3108, allocations: 29.89 kB / 332.8 MB, free: 12.05 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.3108, allocations: 8.531 kB / 332.8 MB, free: 12.05 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001227/0.3109, allocations: 31.48 kB / 332.8 MB, free: 12.03 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.41e-05/0.311, allocations: 10.81 kB / 332.8 MB, free: 12.03 MB / 270.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.0001798/0.3111, allocations: 161.7 kB / 333 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.817e-05/0.3112, allocations: 13.23 kB / 333 MB, free: 11.87 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003525/0.3115, allocations: 191.5 kB / 333.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.3116, allocations: 3.25 kB / 333.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.3116, allocations: 4 kB / 333.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.3116, allocations: 0 / 333.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007413/0.3123, allocations: 0.5924 MB / 333.8 MB, free: 11.17 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.3123, allocations: 3.938 kB / 333.8 MB, free: 11.17 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.253e-05/0.3124, allocations: 19.92 kB / 333.8 MB, free: 11.15 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.3124, allocations: 3.938 kB / 333.8 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.3124, allocations: 4 kB / 333.8 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3125, allocations: 4 kB / 333.8 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3125, allocations: 4 kB / 333.8 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002819/0.3127, allocations: 267.2 kB / 334.1 MB, free: 10.86 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.182e-05/0.3128, allocations: 100.8 kB / 334.2 MB, free: 10.74 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.483e-05/0.3129, allocations: 4 kB / 334.2 MB, free: 10.73 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.548e-05/0.313, allocations: 7.984 kB / 334.2 MB, free: 10.73 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.474e-05/0.313, allocations: 15.98 kB / 334.2 MB, free: 10.71 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.3131, allocations: 7.984 kB / 334.2 MB, free: 10.7 MB / 270.1 MB Notification: Performance of sorting global known variables: time 6.494e-05/0.3131, allocations: 107.2 kB / 334.3 MB, free: 10.6 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3131, allocations: 3.938 kB / 334.3 MB, free: 10.59 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003263/0.3135, allocations: 55.84 kB / 334.4 MB, free: 10.54 MB / 270.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,transition1.enableFire,step.active,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.0001718/0.3137, allocations: 111.5 kB / 334.5 MB, free: 10.42 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.000393/0.3141, allocations: 195.6 kB / 334.7 MB, free: 10.23 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3141, allocations: 0.5625 kB / 334.7 MB, free: 10.23 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001335/0.3142, allocations: 83.91 kB / 334.7 MB, free: 10.15 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.3145, allocations: 20 kB / 334.8 MB, free: 10.13 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006695/0.3152, allocations: 343.3 kB / 335.1 MB, free: 9.77 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.3156, allocations: 0.74 MB / 335.8 MB, free: 9.004 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.573e-05/0.3157, allocations: 25.94 kB / 335.9 MB, free: 8.98 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.482e-05/0.3157, allocations: 19.44 kB / 335.9 MB, free: 8.961 MB / 270.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3157, allocations: 4 kB / 335.9 MB, free: 8.957 MB / 270.1 MB Notification: Performance of Templates: time 0.004903/0.3206, allocations: 1.852 MB / 337.7 MB, free: 7.109 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)