Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001936/0.001935, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.001774/0.001774, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.691/1.691, allocations: 205.4 MB / 223.4 MB, free: 5.293 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.0004459/0.0004459, allocations: 8 kB / 280.1 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.287, allocations: 47.59 MB / 327.7 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001834/0.2889, allocations: 1.389 MB / 329.1 MB, free: 340 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005821/0.2895, allocations: 287 kB / 329.4 MB, free: 104 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.2896, allocations: 3.969 kB / 329.4 MB, free: 104 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.2897, allocations: 15.72 kB / 329.4 MB, free: 92 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.459e-05/0.2898, allocations: 14.36 kB / 329.4 MB, free: 80 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003182/0.2901, allocations: 93.44 kB / 329.5 MB, free: 4 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003292/0.2905, allocations: 235 kB / 329.7 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002781/0.2907, allocations: 147.7 kB / 329.9 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.721e-05/0.2908, allocations: 68.42 kB / 330 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000114/0.291, allocations: 69.84 kB / 330 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.777e-05/0.291, allocations: 9.25 kB / 330 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.873e-05/0.2911, allocations: 25.17 kB / 330.1 MB, free: 15.67 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.346e-05/0.2911, allocations: 38.86 kB / 330.1 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.97e-05/0.2912, allocations: 57.39 kB / 330.2 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002032/0.2914, allocations: 160.5 kB / 330.3 MB, free: 15.47 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.2914, allocations: 1.094 kB / 330.3 MB, free: 15.47 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2914, allocations: 0 / 330.3 MB, free: 15.47 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.2914, allocations: 0 / 330.3 MB, free: 15.47 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.0007092/0.2922, allocations: 449.5 kB / 330.7 MB, free: 15.02 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.2922, allocations: 9.156 kB / 330.8 MB, free: 15.02 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.735e-05/0.2923, allocations: 28.05 kB / 330.8 MB, free: 15.01 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002624/0.2926, allocations: 225.7 kB / 331 MB, free: 14.77 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.42e-05/0.2926, allocations: 24.81 kB / 331 MB, free: 14.75 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.707e-05/0.2927, allocations: 26.53 kB / 331.1 MB, free: 14.74 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005134/0.2932, allocations: 276.1 kB / 331.3 MB, free: 14.54 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.2932, allocations: 5.094 kB / 331.3 MB, free: 14.54 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.698e-05/0.2933, allocations: 6.219 kB / 331.3 MB, free: 14.54 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.2933, allocations: 6.656 kB / 331.3 MB, free: 14.54 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003348/0.2936, allocations: 164.1 kB / 331.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.2948, allocations: 0.9688 MB / 332.5 MB, free: 13.56 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002847/0.2951, allocations: 152.1 kB / 332.6 MB, free: 13.47 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001317/0.2952, allocations: 77.55 kB / 332.7 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.2952, allocations: 2.688 kB / 332.7 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002613/0.2955, allocations: 119.8 kB / 332.8 MB, free: 13.33 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.583e-06/0.2955, allocations: 1.344 kB / 332.8 MB, free: 13.33 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005265/0.2961, allocations: 209.9 kB / 333 MB, free: 13.22 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.2961, allocations: 62.75 kB / 333.1 MB, free: 13.15 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.2963, allocations: 151.3 kB / 333.2 MB, free: 13.02 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.793e-05/0.2964, allocations: 37.97 kB / 333.3 MB, free: 12.98 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.2965, allocations: 142.5 kB / 333.4 MB, free: 12.84 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.798e-05/0.2966, allocations: 52.67 kB / 333.5 MB, free: 12.8 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.541e-05/0.2966, allocations: 9.125 kB / 333.5 MB, free: 12.79 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.2967, allocations: 330.4 kB / 333.8 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.2969, allocations: 61.38 kB / 333.9 MB, free: 12.44 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.2971, allocations: 137.6 kB / 334 MB, free: 12.32 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001353/0.2972, allocations: 75.38 kB / 334.1 MB, free: 12.28 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2972, allocations: 1.125 kB / 334.1 MB, free: 12.28 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004133/0.2976, allocations: 248 kB / 334.3 MB, free: 12.14 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.2977, allocations: 6.5 kB / 334.3 MB, free: 12.14 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.2977, allocations: 3.031 kB / 334.3 MB, free: 12.14 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.2977, allocations: 8.047 kB / 334.3 MB, free: 12.14 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.2979, allocations: 34.05 kB / 334.4 MB, free: 12.13 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.2979, allocations: 7 kB / 334.4 MB, free: 12.12 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.298, allocations: 30.08 kB / 334.4 MB, free: 12.11 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.358e-05/0.298, allocations: 13.16 kB / 334.4 MB, free: 12.1 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,$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,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001688/0.2982, allocations: 157.8 kB / 334.6 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.413e-05/0.2983, allocations: 14.75 kB / 334.6 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003407/0.2986, allocations: 185.2 kB / 334.8 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.2986, allocations: 15.16 kB / 334.8 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2986, allocations: 0 / 334.8 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.2986, allocations: 1.062 kB / 334.8 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007419/0.2994, allocations: 0.5947 MB / 335.4 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.2994, allocations: 7.891 kB / 335.4 MB, free: 11.31 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.191e-05/0.2995, allocations: 19.08 kB / 335.4 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.2995, allocations: 1.094 kB / 335.4 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.2995, allocations: 6 kB / 335.4 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.2995, allocations: 1.344 kB / 335.4 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2996, allocations: 0 / 335.4 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003178/0.2999, allocations: 272.8 kB / 335.7 MB, free: 11.1 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.139e-05/0.2999, allocations: 97.03 kB / 335.8 MB, free: 10.99 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.186e-05/0.3, allocations: 6.062 kB / 335.8 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-05/0.3001, allocations: 11.11 kB / 335.8 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.66e-05/0.3002, allocations: 18.41 kB / 335.8 MB, free: 10.97 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.3002, allocations: 9.312 kB / 335.8 MB, free: 10.96 MB / 270.1 MB Notification: Performance of sorting global known variables: time 6.004e-05/0.3002, allocations: 97.39 kB / 335.9 MB, free: 10.88 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3002, allocations: 1 kB / 335.9 MB, free: 10.88 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003372/0.3006, allocations: 52 kB / 335.9 MB, free: 10.86 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.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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 (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.0001571/0.3008, allocations: 111.2 kB / 336.1 MB, free: 10.74 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003182/0.3011, allocations: 183.7 kB / 336.2 MB, free: 10.56 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3011, allocations: 0 / 336.2 MB, free: 10.56 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.3012, allocations: 79.91 kB / 336.3 MB, free: 10.48 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.3015, allocations: 16.56 kB / 336.3 MB, free: 10.46 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005751/0.3021, allocations: 395.7 kB / 336.7 MB, free: 10.05 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.3025, allocations: 0.7328 MB / 337.4 MB, free: 9.293 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.607e-05/0.3025, allocations: 25.94 kB / 337.5 MB, free: 9.27 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.985e-05/0.3026, allocations: 23.44 kB / 337.5 MB, free: 9.246 MB / 270.1 MB Notification: Performance of SimCode: time 2.455e-06/0.3026, allocations: 0 / 337.5 MB, free: 9.246 MB / 270.1 MB Notification: Performance of Templates: time 0.004517/0.3071, allocations: 1.648 MB / 339.1 MB, free: 7.602 MB / 270.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)