Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002236/0.002236, allocations: 185.7 kB / 8.01 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.171/2.171, allocations: 205.3 MB / 213.7 MB, free: 1.723 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00109/0.00109, allocations: 86.64 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.255/0.255, allocations: 37.99 MB / 347.7 MB, free: 5.766 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.028e-05/2.037e-05, allocations: 4 kB / 409.9 MB, free: 35.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1049, allocations: 56.33 MB / 466.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4862/0.5912, allocations: 93.65 MB / 0.5467 GB, free: 11.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/0.5915, allocations: 89.25 kB / 0.5468 GB, free: 11.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03532/0.6268, allocations: 9.726 MB / 0.5563 GB, free: 7.047 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.6269, allocations: 0 / 0.5563 GB, free: 7.047 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.937e-05/0.6269, allocations: 7.484 kB / 0.5563 GB, free: 7.047 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006927/0.6276, allocations: 481 kB / 0.5568 GB, free: 6.598 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.6277, allocations: 11.53 kB / 0.5568 GB, free: 6.598 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/0.6287, allocations: 89.77 kB / 0.5569 GB, free: 6.559 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004553/0.6292, allocations: 261.8 kB / 0.5571 GB, free: 6.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.6292, allocations: 3.938 kB / 0.5571 GB, free: 6.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.84e-05/0.6293, allocations: 11.25 kB / 0.5571 GB, free: 6.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003411/0.6296, allocations: 137.8 kB / 0.5573 GB, free: 6.301 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004271/0.6301, allocations: 223.3 kB / 0.5575 GB, free: 6.191 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.6301, allocations: 7.594 kB / 0.5575 GB, free: 6.188 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.923e-05/0.6301, allocations: 7.984 kB / 0.5575 GB, free: 6.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.913e-05/0.6302, allocations: 15.14 kB / 0.5575 GB, free: 6.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001996/0.6322, allocations: 1.222 MB / 0.5587 GB, free: 5.254 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004479/0.6327, allocations: 144.2 kB / 0.5588 GB, free: 5.191 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.6328, allocations: 45.73 kB / 0.5589 GB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.6328, allocations: 3.938 kB / 0.5589 GB, free: 5.168 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.6329, allocations: 41.77 kB / 0.5589 GB, free: 5.125 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 2.905e-06/0.6329, allocations: 0 / 0.5589 GB, free: 5.125 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003687/0.6333, allocations: 119.7 kB / 0.559 GB, free: 5.074 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.084e-05/0.6333, allocations: 88.31 kB / 0.5591 GB, free: 4.973 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.6335, allocations: 146.9 kB / 0.5593 GB, free: 4.871 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.6335, allocations: 29.64 kB / 0.5593 GB, free: 4.836 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.863e-05/0.6336, allocations: 212.8 kB / 0.5595 GB, free: 4.648 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.995e-05/0.6336, allocations: 49.86 kB / 0.5595 GB, free: 4.613 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.798e-06/0.6336, allocations: 0 / 0.5595 GB, free: 4.613 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.165e-05/0.6337, allocations: 322.5 kB / 0.5598 GB, free: 4.297 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.332e-05/0.6338, allocations: 36.77 kB / 0.5599 GB, free: 4.293 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.634, allocations: 114 kB / 0.56 GB, free: 4.191 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001373/0.6341, allocations: 61.81 kB / 0.56 GB, free: 4.176 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.6341, allocations: 3.844 kB / 0.56 GB, free: 4.176 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003509/0.6345, allocations: 175.1 kB / 0.5602 GB, free: 4.105 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.6345, allocations: 3.75 kB / 0.5602 GB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.6345, allocations: 3.875 kB / 0.5602 GB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.6346, allocations: 7.797 kB / 0.5602 GB, free: 4.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003342/0.6349, allocations: 54.31 kB / 0.5603 GB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.6349, allocations: 3.875 kB / 0.5603 GB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001609/0.6351, allocations: 15.59 kB / 0.5603 GB, free: 4.078 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.6351, allocations: 10.47 kB / 0.5603 GB, free: 4.078 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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 7.682e-05/0.6352, allocations: 112.9 kB / 0.5604 GB, free: 3.965 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.784e-05/0.6353, allocations: 11.66 kB / 0.5604 GB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003251/0.6356, allocations: 138.7 kB / 0.5606 GB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.6356, allocations: 0 / 0.5606 GB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.6357, allocations: 3.953 kB / 0.5606 GB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.6357, allocations: 11.75 kB / 0.5606 GB, free: 3.895 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007556/0.6364, allocations: 468.1 kB / 0.561 GB, free: 3.543 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.6365, allocations: 7.828 kB / 0.561 GB, free: 3.539 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002871/0.6368, allocations: 34.08 kB / 0.5611 GB, free: 3.535 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.6368, allocations: 3.953 kB / 0.5611 GB, free: 3.531 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.6368, allocations: 3.844 kB / 0.5611 GB, free: 3.531 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.6368, allocations: 3.938 kB / 0.5611 GB, free: 3.527 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.6368, allocations: 3.844 kB / 0.5611 GB, free: 3.527 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004294/0.6373, allocations: 353.6 kB / 0.5614 GB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.284e-05/0.6373, allocations: 95.78 kB / 0.5615 GB, free: 3.156 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.745e-05/0.6374, allocations: 7.938 kB / 0.5615 GB, free: 3.152 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.6376, allocations: 0 / 0.5615 GB, free: 3.152 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.043e-05/0.6376, allocations: 18.25 kB / 0.5615 GB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.6376, allocations: 3.844 kB / 0.5615 GB, free: 3.141 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.958e-05/0.6377, allocations: 129.6 kB / 0.5617 GB, free: 3.055 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6377, allocations: 0 / 0.5617 GB, free: 3.055 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004709/0.6382, allocations: 54.2 kB / 0.5617 GB, free: 3.039 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000134/0.6384, allocations: 105.7 kB / 0.5618 GB, free: 2.945 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002765/0.6387, allocations: 111.8 kB / 0.5619 GB, free: 2.926 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.6387, allocations: 0 / 0.5619 GB, free: 2.926 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001112/0.6388, allocations: 54.77 kB / 0.562 GB, free: 2.914 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003943/0.6392, allocations: 30.28 kB / 0.562 GB, free: 2.898 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008916/0.6401, allocations: 416.4 kB / 0.5624 GB, free: 2.492 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/0.6404, allocations: 0.7473 MB / 0.5631 GB, free: 1.723 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.679e-05/0.6404, allocations: 19.44 kB / 0.5631 GB, free: 1.703 MB / 362.7 MB Notification: Performance of SimCode: time 9.52e-07/0.6404, allocations: 0 / 0.5631 GB, free: 1.703 MB / 362.7 MB Notification: Performance of Templates: time 0.005091/0.6455, allocations: 2.134 MB / 0.5652 GB, free: 15.59 MB / 378.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)