Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.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.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance",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.002041/0.002041, 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.208/2.208, allocations: 205.3 MB / 213.7 MB, free: 1.742 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.001031/0.001031, allocations: 90.58 kB / 261.8 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2638/0.2638, allocations: 37.99 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.692e-05/2.709e-05, allocations: 4 kB / 409.9 MB, free: 35.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1195, allocations: 56.33 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5054/0.625, allocations: 100.2 MB / 0.5532 GB, free: 9.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002919/0.6254, allocations: 88.53 kB / 0.5532 GB, free: 9.234 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05102/0.6764, allocations: 12.46 MB / 0.5654 GB, free: 0.5039 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.6765, allocations: 0 / 0.5654 GB, free: 0.5039 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.461e-05/0.6765, allocations: 12 kB / 0.5654 GB, free: 0.4922 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001492/0.678, allocations: 0.6711 MB / 0.5661 GB, free: 15.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.6781, allocations: 8.031 kB / 0.5661 GB, free: 15.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009366/0.679, allocations: 95.28 kB / 0.5662 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003471/0.6825, allocations: 0.8442 MB / 0.567 GB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.07e-05/0.6826, allocations: 16 kB / 0.567 GB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.6827, allocations: 27.94 kB / 0.567 GB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009922/0.6837, allocations: 365.2 kB / 0.5674 GB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.685, allocations: 0.5602 MB / 0.5679 GB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.898e-05/0.685, allocations: 3.938 kB / 0.5679 GB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.712e-05/0.6851, allocations: 4 kB / 0.5679 GB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-05/0.6852, allocations: 29.38 kB / 0.568 GB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00499/0.6902, allocations: 2.836 MB / 0.5707 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004421/0.6907, allocations: 190.1 kB / 0.5709 GB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002664/0.6909, allocations: 125.4 kB / 0.571 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.825e-05/0.691, allocations: 7.984 kB / 0.571 GB, free: 11.19 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.6911, allocations: 38.69 kB / 0.5711 GB, free: 11.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 3.156e-06/0.6911, allocations: 4 kB / 0.5711 GB, free: 11.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.00219/0.6933, allocations: 0.8379 MB / 0.5719 GB, free: 10.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.442e-05/0.6934, allocations: 84.39 kB / 0.572 GB, free: 10.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004375/0.6938, allocations: 275.8 kB / 0.5722 GB, free: 10.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.909e-05/0.6939, allocations: 25.7 kB / 0.5723 GB, free: 10.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002711/0.6942, allocations: 341.1 kB / 0.5726 GB, free: 9.719 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.6943, allocations: 89.12 kB / 0.5727 GB, free: 9.645 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-05/0.6943, allocations: 0 / 0.5727 GB, free: 9.645 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.6945, allocations: 333.8 kB / 0.573 GB, free: 9.316 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003226/0.6948, allocations: 130.8 kB / 0.5731 GB, free: 9.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004823/0.6953, allocations: 314.9 kB / 0.5734 GB, free: 8.895 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005549/0.6959, allocations: 205.4 kB / 0.5736 GB, free: 8.746 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.6959, allocations: 0 / 0.5736 GB, free: 8.746 MB / 378.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001593/0.6975, allocations: 0.524 MB / 0.5741 GB, free: 8.312 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.794e-05/0.6976, allocations: 8 kB / 0.5741 GB, free: 8.305 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009247/0.6985, allocations: 305.2 kB / 0.5744 GB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005167/0.6991, allocations: 83.34 kB / 0.5745 GB, free: 8.008 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006388/0.6997, allocations: 95.75 kB / 0.5746 GB, free: 7.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002157/0.7019, allocations: 1.522 MB / 0.5761 GB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005089/0.7024, allocations: 15.97 kB / 0.5761 GB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.416e-05/0.7025, allocations: 23.62 kB / 0.5761 GB, free: 6.371 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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): 46 * Array equations: 1 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001655/0.7027, allocations: 124.4 kB / 0.5762 GB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000759/0.7035, allocations: 298.9 kB / 0.5765 GB, free: 6.012 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.255e-05/0.7036, allocations: 35.66 kB / 0.5766 GB, free: 5.977 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009319/0.7045, allocations: 325.4 kB / 0.5769 GB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.694e-05/0.7046, allocations: 8 kB / 0.5769 GB, free: 5.727 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.7046, allocations: 0 / 0.5769 GB, free: 5.727 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/0.7046, allocations: 7.938 kB / 0.5769 GB, free: 5.719 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/0.7066, allocations: 0.7905 MB / 0.5777 GB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.7067, allocations: 0 / 0.5777 GB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005907/0.7073, allocations: 59.78 kB / 0.5777 GB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.136e-06/0.7073, allocations: 0 / 0.5777 GB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.876e-05/0.7073, allocations: 11.94 kB / 0.5777 GB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.514e-06/0.7073, allocations: 4 kB / 0.5777 GB, free: 4.949 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.7074, allocations: 0 / 0.5777 GB, free: 4.949 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.7085, allocations: 0.573 MB / 0.5783 GB, free: 4.445 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.7087, allocations: 108.5 kB / 0.5784 GB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.368e-05/0.7088, allocations: 12.03 kB / 0.5784 GB, free: 4.312 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003275/0.7091, allocations: 15.92 kB / 0.5784 GB, free: 4.297 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.932e-05/0.7092, allocations: 11.98 kB / 0.5784 GB, free: 4.285 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.221e-05/0.7092, allocations: 11.88 kB / 0.5784 GB, free: 4.277 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003155/0.7095, allocations: 202.8 kB / 0.5786 GB, free: 4.117 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7095, allocations: 0 / 0.5786 GB, free: 4.117 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007756/0.7103, allocations: 107.7 kB / 0.5787 GB, free: 4.016 MB / 378.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 (25): * Single equations (assignments): 23 * Array equations: 1 * 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.001652/0.712, allocations: 1.328 MB / 0.58 GB, free: 2.758 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.7132, allocations: 450 kB / 0.5805 GB, free: 2.398 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.7132, allocations: 0 / 0.5805 GB, free: 2.398 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003021/0.7136, allocations: 135.3 kB / 0.5806 GB, free: 2.305 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006119/0.7142, allocations: 61.7 kB / 0.5807 GB, free: 2.258 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/0.7168, allocations: 0.9398 MB / 0.5816 GB, free: 1.352 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006408/0.7175, allocations: 0.8808 MB / 0.5824 GB, free: 468 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003465/0.7179, allocations: 147.2 kB / 0.5826 GB, free: 424 kB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.7179, allocations: 4 kB / 0.5826 GB, free: 420 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.858/3.576, allocations: 7.762 MB / 0.5902 GB, free: 8.719 MB / 394.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1)