Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.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.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source",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.002382/0.002382, allocations: 189 kB / 8.013 MB, free: 1.062 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.039/2.039, allocations: 205.3 MB / 213.7 MB, free: 1.738 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.001077/0.001077, allocations: 86.66 kB / 261.8 MB, free: 1.691 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2504/0.2504, allocations: 37.99 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.81e-05/3.819e-05, allocations: 4 kB / 409.9 MB, free: 35.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1442, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5081/0.6523, allocations: 100.7 MB / 0.5536 GB, free: 9.281 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004271/0.6527, allocations: 89.94 kB / 0.5537 GB, free: 9.266 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.102/0.7547, allocations: 14.98 MB / 0.5684 GB, free: 14.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.7548, allocations: 0 / 0.5684 GB, free: 14.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.116e-05/0.7549, allocations: 12 kB / 0.5684 GB, free: 14.07 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.002709/0.7576, allocations: 0.6874 MB / 0.569 GB, free: 13.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.315e-05/0.7577, allocations: 8.031 kB / 0.569 GB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001521/0.7592, allocations: 87.38 kB / 0.5691 GB, free: 13.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005289/0.7645, allocations: 0.8408 MB / 0.57 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.43e-05/0.7646, allocations: 12 kB / 0.57 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001971/0.7649, allocations: 27.91 kB / 0.57 GB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001826/0.7667, allocations: 479.5 kB / 0.5704 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002055/0.7688, allocations: 0.6132 MB / 0.571 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.668e-05/0.7689, allocations: 4 kB / 0.5711 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.125e-05/0.769, allocations: 3.953 kB / 0.5711 GB, free: 11.67 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003964/0.7694, allocations: 59.92 kB / 0.5711 GB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009822/0.7793, allocations: 2.547 MB / 0.5736 GB, free: 9.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.7805, allocations: 329.6 kB / 0.5739 GB, free: 9.023 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007696/0.7813, allocations: 236.9 kB / 0.5741 GB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.139e-05/0.7814, allocations: 4 kB / 0.5741 GB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.963e-05/0.7815, allocations: 38.25 kB / 0.5742 GB, free: 8.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 6.302e-06/0.7815, allocations: 0 / 0.5742 GB, free: 8.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.007491/0.789, allocations: 1.527 MB / 0.5757 GB, free: 7.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.835e-05/0.7891, allocations: 81.11 kB / 0.5757 GB, free: 7.383 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005074/0.7897, allocations: 218.4 kB / 0.576 GB, free: 7.203 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.934e-05/0.7898, allocations: 29.64 kB / 0.576 GB, free: 7.168 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002918/0.7901, allocations: 301.9 kB / 0.5763 GB, free: 6.902 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003207/0.7904, allocations: 147.1 kB / 0.5764 GB, free: 6.773 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.146e-05/0.7905, allocations: 0 / 0.5764 GB, free: 6.773 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002417/0.7908, allocations: 337.7 kB / 0.5767 GB, free: 6.441 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000723/0.7915, allocations: 212.9 kB / 0.5769 GB, free: 6.301 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008491/0.7924, allocations: 326.5 kB / 0.5772 GB, free: 6.012 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002079/0.7945, allocations: 367.4 kB / 0.5776 GB, free: 5.727 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.055e-05/0.7946, allocations: 0 / 0.5776 GB, free: 5.727 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.004026/0.7986, allocations: 0.7806 MB / 0.5784 GB, free: 5.094 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.59e-05/0.7987, allocations: 4 kB / 0.5784 GB, free: 5.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003258/0.802, allocations: 0.6217 MB / 0.579 GB, free: 4.602 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/0.803, allocations: 111.1 kB / 0.5791 GB, free: 4.504 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009855/0.804, allocations: 83.69 kB / 0.5792 GB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005359/0.8094, allocations: 2.871 MB / 0.582 GB, free: 1.527 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008305/0.8103, allocations: 31.86 kB / 0.582 GB, free: 1.496 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.715e-05/0.8104, allocations: 19.38 kB / 0.582 GB, free: 1.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (43): * Single equations (assignments): 38 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002509/0.8107, allocations: 120.2 kB / 0.5821 GB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002744/0.8135, allocations: 0.5798 MB / 0.5827 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.8136, allocations: 27.62 kB / 0.5827 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002963/0.8166, allocations: 0.6214 MB / 0.5833 GB, free: 392 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001765/0.8169, allocations: 23.8 kB / 0.5833 GB, free: 372 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.439e-05/0.8169, allocations: 4 kB / 0.5834 GB, free: 368 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.465e-05/0.8169, allocations: 3.984 kB / 0.5834 GB, free: 364 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005135/0.8221, allocations: 1.139 MB / 0.5845 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/0.8222, allocations: 4 kB / 0.5845 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/0.8235, allocations: 70.81 kB / 0.5845 GB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.986e-05/0.8235, allocations: 4 kB / 0.5845 GB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.406e-05/0.8236, allocations: 0 / 0.5845 GB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.43e-05/0.8236, allocations: 7.938 kB / 0.5845 GB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.03e-05/0.8237, allocations: 4.094 kB / 0.5846 GB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003637/0.8273, allocations: 0.9866 MB / 0.5855 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004459/0.8278, allocations: 147 kB / 0.5857 GB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.828, allocations: 0 / 0.5857 GB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006773/0.8287, allocations: 19.97 kB / 0.5857 GB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.8288, allocations: 19.77 kB / 0.5857 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.294e-05/0.8289, allocations: 11.81 kB / 0.5857 GB, free: 14.29 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003644/0.8293, allocations: 174.9 kB / 0.5859 GB, free: 14.14 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.002e-06/0.8293, allocations: 0 / 0.5859 GB, free: 14.14 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001291/0.8306, allocations: 123.9 kB / 0.586 GB, free: 14.02 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 3 * 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.004473/0.8351, allocations: 1.77 MB / 0.5877 GB, free: 12.42 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002567/0.8377, allocations: 0.7307 MB / 0.5884 GB, free: 11.83 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.8378, allocations: 3.938 kB / 0.5884 GB, free: 11.83 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007975/0.8386, allocations: 243.3 kB / 0.5887 GB, free: 11.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009637/0.8396, allocations: 58.75 kB / 0.5887 GB, free: 11.61 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004486/0.8441, allocations: 1.087 MB / 0.5898 GB, free: 10.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009272/0.8451, allocations: 0.8864 MB / 0.5907 GB, free: 9.711 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005951/0.8457, allocations: 149.2 kB / 0.5908 GB, free: 9.664 MB / 394.7 MB Notification: Performance of SimCode: time 1.913e-06/0.8457, allocations: 0 / 0.5908 GB, free: 9.664 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.062/3.908, allocations: 8.966 MB / 0.5996 GB, free: 0.7734 MB / 394.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1)