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.002318/0.002325, allocations: 180.1 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.254/2.254, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 82.66 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2632/0.2632, allocations: 37.99 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.581e-05/2.592e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1153, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4886/0.604, allocations: 97.19 MB / 0.5502 GB, free: 10.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/0.6043, allocations: 87.17 kB / 0.5503 GB, free: 10.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.104/0.7083, allocations: 23.85 MB / 0.5736 GB, free: 10.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.7083, allocations: 3.938 kB / 0.5736 GB, free: 10.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.332e-05/0.7083, allocations: 8 kB / 0.5736 GB, free: 10.45 MB / 378.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.001611/0.71, allocations: 0.6713 MB / 0.5743 GB, free: 9.762 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/0.71, allocations: 12.02 kB / 0.5743 GB, free: 9.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002821/0.7129, allocations: 218.9 kB / 0.5745 GB, free: 9.539 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.714, allocations: 364.2 kB / 0.5749 GB, free: 9.184 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.846e-05/0.7142, allocations: 20 kB / 0.5749 GB, free: 9.164 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.7143, allocations: 27.06 kB / 0.5749 GB, free: 9.141 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001157/0.7155, allocations: 433.2 kB / 0.5753 GB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.7168, allocations: 0.5421 MB / 0.5758 GB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.47e-05/0.7169, allocations: 15.48 kB / 0.5759 GB, free: 8.422 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.063e-05/0.7169, allocations: 0 / 0.5759 GB, free: 8.422 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002465/0.7172, allocations: 45.28 kB / 0.5759 GB, free: 8.379 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005492/0.7227, allocations: 2.205 MB / 0.5781 GB, free: 6.496 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.7238, allocations: 482.3 kB / 0.5785 GB, free: 6.117 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005671/0.7244, allocations: 235.3 kB / 0.5787 GB, free: 5.961 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.436e-05/0.7245, allocations: 7.5 kB / 0.5787 GB, free: 5.957 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.041e-05/0.7246, allocations: 42.06 kB / 0.5788 GB, free: 5.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 2.805e-06/0.7246, allocations: 0 / 0.5788 GB, free: 5.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=45): time 0.003596/0.7282, allocations: 1.218 MB / 0.58 GB, free: 4.883 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.108e-05/0.7283, allocations: 85.14 kB / 0.5801 GB, free: 4.781 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003013/0.7286, allocations: 207.1 kB / 0.5803 GB, free: 4.605 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.377e-05/0.7287, allocations: 25.7 kB / 0.5803 GB, free: 4.574 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.7289, allocations: 279.2 kB / 0.5805 GB, free: 4.328 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.7291, allocations: 155 kB / 0.5807 GB, free: 4.195 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/0.7291, allocations: 0 / 0.5807 GB, free: 4.195 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.7293, allocations: 333.4 kB / 0.581 GB, free: 3.867 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004039/0.7297, allocations: 172.2 kB / 0.5812 GB, free: 3.762 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005322/0.7302, allocations: 277.9 kB / 0.5814 GB, free: 3.512 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005189/0.7308, allocations: 214.3 kB / 0.5816 GB, free: 3.375 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.7308, allocations: 0 / 0.5816 GB, free: 3.375 MB / 378.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001875/0.7327, allocations: 0.6104 MB / 0.5822 GB, free: 2.898 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.7327, allocations: 4.438 kB / 0.5822 GB, free: 2.895 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.7327, allocations: 8 kB / 0.5823 GB, free: 2.887 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009578/0.7337, allocations: 167.5 kB / 0.5824 GB, free: 2.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008145/0.7345, allocations: 107 kB / 0.5825 GB, free: 2.648 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004973/0.7395, allocations: 2.374 MB / 0.5848 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005364/0.7401, allocations: 11.98 kB / 0.5848 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.271e-05/0.7402, allocations: 27.48 kB / 0.5849 GB, free: 0.5234 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedLoad.terminal.i[2]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * 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.0002352/0.7404, allocations: 116.5 kB / 0.585 GB, free: 416 kB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001798/0.7422, allocations: 0.5531 MB / 0.5855 GB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.7424, allocations: 39.61 kB / 0.5856 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001912/0.7444, allocations: 0.6029 MB / 0.5862 GB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.284e-05/0.7444, allocations: 4 kB / 0.5862 GB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.7444, allocations: 112 / 0.5862 GB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.7444, allocations: 11.92 kB / 0.5862 GB, free: 15.48 MB / 394.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00381/0.7483, allocations: 1.283 MB / 0.5874 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.623e-06/0.7483, allocations: 0 / 0.5874 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007729/0.7491, allocations: 83.08 kB / 0.5875 GB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007655/0.7499, allocations: 126.9 kB / 0.5876 GB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.483e-05/0.7499, allocations: 19.56 kB / 0.5876 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004345/0.7543, allocations: 2.208 MB / 0.5898 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.235e-06/0.7543, allocations: 8 kB / 0.5898 GB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002345/0.7567, allocations: 0.9595 MB / 0.5907 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001643/0.7569, allocations: 108.2 kB / 0.5908 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.15e-05/0.757, allocations: 3.953 kB / 0.5908 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003767/0.7574, allocations: 8.031 kB / 0.5909 GB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.7575, allocations: 31.08 kB / 0.5909 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.162e-05/0.7576, allocations: 23.61 kB / 0.5909 GB, free: 11.28 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002236/0.7578, allocations: 153 kB / 0.5911 GB, free: 11.16 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.7578, allocations: 0 / 0.5911 GB, free: 11.16 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009759/0.7588, allocations: 128 kB / 0.5912 GB, free: 11.03 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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.002884/0.7617, allocations: 1.73 MB / 0.5929 GB, free: 9.422 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002099/0.7638, allocations: 0.6492 MB / 0.5935 GB, free: 8.766 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.7639, allocations: 3.938 kB / 0.5935 GB, free: 8.762 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.7651, allocations: 417.3 kB / 0.5939 GB, free: 8.344 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006147/0.7657, allocations: 44.48 kB / 0.5939 GB, free: 8.301 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00316/0.7689, allocations: 1.051 MB / 0.595 GB, free: 7.199 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006867/0.7696, allocations: 0.8829 MB / 0.5958 GB, free: 6.285 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003965/0.77, allocations: 143.4 kB / 0.596 GB, free: 6.145 MB / 394.7 MB Notification: Performance of SimCode: time 1.292e-06/0.7701, allocations: 4 kB / 0.596 GB, free: 6.141 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.755/3.525, allocations: 8.762 MB / 0.6045 GB, free: 13.37 MB / 410.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)