Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009995/0.0009994, allocations: 174.5 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.4 MB / 222.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007543/0.0007543, allocations: 86.36 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1689/0.1689, allocations: 38.08 MB / 356.9 MB, free: 1.719 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003602, allocations: 20 kB / 423.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2761, allocations: 56.33 MB / 479.7 MB, free: 9.219 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.004602/0.2807, allocations: 4.742 MB / 484.5 MB, free: 6.102 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002899/0.2837, allocations: 2.471 MB / 487 MB, free: 4.348 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003443/0.284, allocations: 20.75 kB / 487 MB, free: 4.34 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003087/0.2844, allocations: 82.58 kB / 487.1 MB, free: 4.297 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001264/0.2856, allocations: 496.7 kB / 487.5 MB, free: 4.051 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006811/0.2863, allocations: 254.9 kB / 487.8 MB, free: 3.934 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001197/0.2875, allocations: 0.9002 MB / 488.7 MB, free: 3.598 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001061/0.2886, allocations: 0.5608 MB / 489.2 MB, free: 3.266 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000522/0.2891, allocations: 250.8 kB / 489.5 MB, free: 3.168 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005354/0.2897, allocations: 313.4 kB / 489.8 MB, free: 3.055 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.288e-05/0.2897, allocations: 19.25 kB / 489.8 MB, free: 3.055 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00167/0.2914, allocations: 0.7335 MB / 490.6 MB, free: 2.789 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002445/0.2917, allocations: 182.4 kB / 490.7 MB, free: 2.734 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002806/0.292, allocations: 237.9 kB / 491 MB, free: 2.59 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008968/0.2929, allocations: 0.5649 MB / 491.5 MB, free: 2.453 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.2929, allocations: 0.5156 kB / 491.5 MB, free: 2.453 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.2929, allocations: 0 / 491.5 MB, free: 2.453 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.859e-06/0.2929, allocations: 1.281 kB / 491.5 MB, free: 2.453 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001067/0.294, allocations: 0.6791 MB / 492.2 MB, free: 1.902 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.2941, allocations: 13.72 kB / 492.2 MB, free: 1.898 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.2942, allocations: 93.77 kB / 492.3 MB, free: 1.824 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001574/0.2957, allocations: 205.8 kB / 492.5 MB, free: 1.789 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004558/0.2962, allocations: 358.5 kB / 492.9 MB, free: 1.504 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.552e-05/0.2963, allocations: 33.41 kB / 492.9 MB, free: 1.484 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.454e-05/0.2963, allocations: 44.94 kB / 492.9 MB, free: 1.469 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.2974, allocations: 0.6231 MB / 493.6 MB, free: 1.188 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.2974, allocations: 1.984 kB / 493.6 MB, free: 1.188 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.617e-05/0.2975, allocations: 17.12 kB / 493.6 MB, free: 1.176 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.766e-05/0.2976, allocations: 40.31 kB / 493.6 MB, free: 1.168 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009711/0.2985, allocations: 0.6068 MB / 494.2 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003385/0.3019, allocations: 2.269 MB / 496.5 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000705/0.3027, allocations: 489.7 kB / 497 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003728/0.303, allocations: 234.3 kB / 497.2 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.287e-05/0.3031, allocations: 4.625 kB / 497.2 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.483e-05/0.3031, allocations: 38.84 kB / 497.2 MB, free: 15.12 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 3.677e-06/0.3032, allocations: 0 / 497.2 MB, free: 15.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=43): time 0.003667/0.3068, allocations: 1.712 MB / 499 MB, free: 14.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.416e-05/0.3069, allocations: 81.55 kB / 499 MB, free: 14.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.3073, allocations: 282.7 kB / 499.3 MB, free: 13.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.276e-05/0.3073, allocations: 31.67 kB / 499.3 MB, free: 13.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.3074, allocations: 234.8 kB / 499.6 MB, free: 13.72 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.3076, allocations: 148.8 kB / 499.7 MB, free: 13.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.389e-05/0.3076, allocations: 10.31 kB / 499.7 MB, free: 13.58 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.3078, allocations: 351.6 kB / 0.4884 GB, free: 13.24 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002648/0.308, allocations: 171.8 kB / 0.4885 GB, free: 13.16 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003262/0.3084, allocations: 295.7 kB / 0.4888 GB, free: 12.94 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006368/0.309, allocations: 0.4941 MB / 0.4893 GB, free: 12.61 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.309, allocations: 1.062 kB / 0.4893 GB, free: 12.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001212/0.3102, allocations: 0.6771 MB / 0.4899 GB, free: 12.24 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.3103, allocations: 10.94 kB / 0.49 GB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.3103, allocations: 3.812 kB / 0.49 GB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006638/0.311, allocations: 179.6 kB / 0.4901 GB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003782/0.3114, allocations: 95.12 kB / 0.4902 GB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00344/0.3148, allocations: 2.525 MB / 0.4927 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002989/0.3151, allocations: 20.61 kB / 0.4927 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.269e-05/0.3152, allocations: 23.92 kB / 0.4927 GB, free: 10.06 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002897/0.3155, allocations: 197.2 kB / 0.4929 GB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.038e-05/0.3155, allocations: 37.12 kB / 0.493 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001177/0.3167, allocations: 0.6411 MB / 0.4936 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3167, allocations: 3.906 kB / 0.4936 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.3168, allocations: 1.312 kB / 0.4936 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.3168, allocations: 5.359 kB / 0.4936 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002332/0.3191, allocations: 1.35 MB / 0.4949 GB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.3191, allocations: 5.188 kB / 0.4949 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003668/0.3195, allocations: 82.23 kB / 0.495 GB, free: 8.527 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004586/0.32, allocations: 136.4 kB / 0.4951 GB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.606e-05/0.32, allocations: 16.3 kB / 0.4951 GB, free: 8.453 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002792/0.3228, allocations: 2.312 MB / 0.4974 GB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3228, allocations: 1.375 kB / 0.4974 GB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001521/0.3244, allocations: 0.9486 MB / 0.4983 GB, free: 5.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.3245, allocations: 111.6 kB / 0.4984 GB, free: 5.812 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.893e-05/0.3246, allocations: 11.97 kB / 0.4984 GB, free: 5.805 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.3248, allocations: 16.58 kB / 0.4985 GB, free: 5.793 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.991e-05/0.3249, allocations: 30.77 kB / 0.4985 GB, free: 5.777 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.495e-05/0.3249, allocations: 23.14 kB / 0.4985 GB, free: 5.766 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002245/0.3251, allocations: 197.5 kB / 0.4987 GB, free: 5.629 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3251, allocations: 192 / 0.4987 GB, free: 5.629 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00071/0.3259, allocations: 138.4 kB / 0.4988 GB, free: 5.613 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001729/0.3276, allocations: 1.5 MB / 0.5003 GB, free: 4.496 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.3289, allocations: 0.6505 MB / 0.5009 GB, free: 4.133 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3289, allocations: 8.25 kB / 0.5009 GB, free: 4.125 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006859/0.3296, allocations: 427.6 kB / 0.5013 GB, free: 3.742 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005393/0.3301, allocations: 64.56 kB / 0.5014 GB, free: 3.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004596/0.3348, allocations: 3.039 MB / 0.5044 GB, free: 0.543 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.3352, allocations: 0.8788 MB / 0.5052 GB, free: 15.64 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002097/0.3354, allocations: 151.4 kB / 0.5054 GB, free: 15.49 MB / 346.7 MB Notification: Performance of SimCode: time 8.21e-07/0.3354, allocations: 0 / 0.5054 GB, free: 15.49 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.336/3.672, allocations: 8.205 MB / 0.5134 GB, free: 7.273 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)