Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001729/0.00173, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.548/1.548, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0004615/0.0004616, allocations: 8 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2902, allocations: 47.58 MB / 326.4 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001661/0.2919, allocations: 1.191 MB / 327.6 MB, free: 468 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006173/0.2926, allocations: 262.4 kB / 327.9 MB, free: 256 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.2927, allocations: 3.375 kB / 327.9 MB, free: 256 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.2929, allocations: 19.48 kB / 327.9 MB, free: 240 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 4.346e-05/0.2929, allocations: 13.33 kB / 327.9 MB, free: 228 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004144/0.2933, allocations: 88.55 kB / 328 MB, free: 156 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002599/0.2936, allocations: 151.9 kB / 328.2 MB, free: 52 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003561/0.294, allocations: 140 kB / 328.3 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.2941, allocations: 67.81 kB / 328.4 MB, free: 15.92 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.2943, allocations: 65.09 kB / 328.4 MB, free: 15.88 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.024e-05/0.2943, allocations: 13.66 kB / 328.4 MB, free: 15.87 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.07e-05/0.2944, allocations: 20.53 kB / 328.5 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.847e-05/0.2945, allocations: 38.73 kB / 328.5 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.229e-05/0.2946, allocations: 60.88 kB / 328.5 MB, free: 15.78 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.2948, allocations: 152.8 kB / 328.7 MB, free: 15.67 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2948, allocations: 0 / 328.7 MB, free: 15.67 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.2948, allocations: 3.938 kB / 328.7 MB, free: 15.66 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.2948, allocations: 0 / 328.7 MB, free: 15.66 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008074/0.2956, allocations: 435 kB / 329.1 MB, free: 15.23 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.2957, allocations: 9.031 kB / 329.1 MB, free: 15.23 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.138e-05/0.2958, allocations: 31.2 kB / 329.2 MB, free: 15.21 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002984/0.2961, allocations: 217.5 kB / 329.4 MB, free: 14.98 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.863e-05/0.2961, allocations: 19.62 kB / 329.4 MB, free: 14.97 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.477e-05/0.2962, allocations: 25.53 kB / 329.4 MB, free: 14.96 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005241/0.2967, allocations: 241.8 kB / 329.7 MB, free: 14.8 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.2968, allocations: 1.344 kB / 329.7 MB, free: 14.8 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.817e-05/0.2968, allocations: 17.27 kB / 329.7 MB, free: 14.79 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.2968, allocations: 5.844 kB / 329.7 MB, free: 14.79 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003482/0.2972, allocations: 157.4 kB / 329.8 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.2984, allocations: 0.7049 MB / 330.5 MB, free: 14.08 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003775/0.2988, allocations: 163.4 kB / 330.7 MB, free: 13.99 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.158e-05/0.2988, allocations: 3.469 kB / 330.7 MB, free: 13.99 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002709/0.2991, allocations: 125.5 kB / 330.8 MB, free: 13.89 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.954e-06/0.2991, allocations: 0 / 330.8 MB, free: 13.89 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004934/0.2996, allocations: 214.4 kB / 331 MB, free: 13.78 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/0.2997, allocations: 62.3 kB / 331.1 MB, free: 13.71 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.2999, allocations: 149.1 kB / 331.2 MB, free: 13.57 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.111e-05/0.2999, allocations: 37.8 kB / 331.3 MB, free: 13.53 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.3, allocations: 130.2 kB / 331.4 MB, free: 13.41 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.3002, allocations: 63.77 kB / 331.5 MB, free: 13.35 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.259e-05/0.3002, allocations: 10.06 kB / 331.5 MB, free: 13.34 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.3004, allocations: 326.4 kB / 331.8 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.3005, allocations: 65.22 kB / 331.9 MB, free: 12.98 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.3007, allocations: 126 kB / 332 MB, free: 12.88 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.3008, allocations: 70.09 kB / 332.1 MB, free: 12.84 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.3008, allocations: 1.125 kB / 332.1 MB, free: 12.84 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004333/0.3013, allocations: 236.5 kB / 332.3 MB, free: 12.72 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.915e-05/0.3013, allocations: 5.156 kB / 332.3 MB, free: 12.72 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.3013, allocations: 6.969 kB / 332.3 MB, free: 12.71 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.3014, allocations: 3.281 kB / 332.3 MB, free: 12.71 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.3015, allocations: 31.67 kB / 332.3 MB, free: 12.7 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.3016, allocations: 2.719 kB / 332.3 MB, free: 12.7 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.3017, allocations: 26.89 kB / 332.4 MB, free: 12.69 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.316e-05/0.3017, allocations: 16.83 kB / 332.4 MB, free: 12.68 MB / 270.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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001696/0.3019, allocations: 154 kB / 332.5 MB, free: 12.54 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.582e-05/0.3019, allocations: 14.56 kB / 332.5 MB, free: 12.53 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004143/0.3024, allocations: 196.4 kB / 332.7 MB, free: 12.41 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.3024, allocations: 2.469 kB / 332.7 MB, free: 12.41 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.3024, allocations: 0 / 332.7 MB, free: 12.41 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.3024, allocations: 9.016 kB / 332.7 MB, free: 12.4 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009145/0.3033, allocations: 0.5794 MB / 333.3 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.3033, allocations: 4 kB / 333.3 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.492e-05/0.3034, allocations: 17.38 kB / 333.3 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.3035, allocations: 1.188 kB / 333.3 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.3035, allocations: 8.984 kB / 333.4 MB, free: 11.9 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.275e-06/0.3035, allocations: 5.141 kB / 333.4 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.3035, allocations: 5.156 kB / 333.4 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004164/0.3039, allocations: 270.9 kB / 333.6 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.449e-05/0.304, allocations: 85.67 kB / 333.7 MB, free: 11.6 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.145e-05/0.304, allocations: 9.125 kB / 333.7 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.401e-05/0.3041, allocations: 9.438 kB / 333.7 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.3043, allocations: 33.92 kB / 333.8 MB, free: 11.56 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.173e-05/0.3043, allocations: 5.5 kB / 333.8 MB, free: 11.56 MB / 270.1 MB Notification: Performance of sorting global known variables: time 8.164e-05/0.3044, allocations: 97.67 kB / 333.9 MB, free: 11.48 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3044, allocations: 0 / 333.9 MB, free: 11.48 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004929/0.3049, allocations: 49.69 kB / 333.9 MB, free: 11.46 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,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 (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002459/0.3051, allocations: 121 kB / 334 MB, free: 11.35 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004075/0.3055, allocations: 174.2 kB / 334.2 MB, free: 11.28 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3056, allocations: 0 / 334.2 MB, free: 11.28 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001697/0.3057, allocations: 86.44 kB / 334.3 MB, free: 11.25 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002365/0.306, allocations: 19.22 kB / 334.3 MB, free: 11.23 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006477/0.3066, allocations: 380 kB / 334.7 MB, free: 10.86 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.3069, allocations: 0.7406 MB / 335.4 MB, free: 10.09 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 7.899e-05/0.307, allocations: 17.95 kB / 335.4 MB, free: 10.07 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.134e-05/0.3071, allocations: 31.42 kB / 335.5 MB, free: 10.05 MB / 270.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3071, allocations: 0 / 335.5 MB, free: 10.05 MB / 270.1 MB Notification: Performance of Templates: time 0.00528/0.3124, allocations: 1.644 MB / 337.1 MB, free: 8.406 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) Environment - environmentSimulation: