Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_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.001088/0.001087, allocations: 174.9 kB / 13.63 MB, free: 1.684 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.563/1.563, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0009017/0.000902, allocations: 90.67 kB / 267.5 MB, free: 14.09 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1722/0.1722, allocations: 37.99 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.166e-05/3.17e-05, allocations: 4 kB / 417.8 MB, free: 29.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1239, allocations: 56.33 MB / 474.2 MB, free: 4.699 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4313/0.5552, allocations: 100.8 MB / 0.5615 GB, free: 1.922 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002362/0.5555, allocations: 92.31 kB / 0.5616 GB, free: 1.879 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03461/0.5901, allocations: 12.56 MB / 0.5738 GB, free: 7.082 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5902, allocations: 0 / 0.5738 GB, free: 7.082 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.854e-05/0.5902, allocations: 16 kB / 0.5739 GB, free: 7.066 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001384/0.5916, allocations: 0.6665 MB / 0.5745 GB, free: 6.379 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.5917, allocations: 12.03 kB / 0.5745 GB, free: 6.367 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001645/0.5919, allocations: 86.27 kB / 0.5746 GB, free: 6.301 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006192/0.5925, allocations: 95.28 kB / 0.5747 GB, free: 6.207 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0022/0.5947, allocations: 0.8525 MB / 0.5755 GB, free: 5.445 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.406e-05/0.5948, allocations: 29.38 kB / 0.5756 GB, free: 5.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.697e-05/0.5949, allocations: 45.61 kB / 0.5756 GB, free: 5.398 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009267/0.5958, allocations: 0.6216 MB / 0.5762 GB, free: 4.863 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.5958, allocations: 4 kB / 0.5762 GB, free: 4.859 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.674e-05/0.5959, allocations: 17.38 kB / 0.5762 GB, free: 4.855 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.176e-05/0.5959, allocations: 28.77 kB / 0.5763 GB, free: 4.828 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007209/0.5967, allocations: 440.1 kB / 0.5767 GB, free: 4.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003294/0.6, allocations: 2.921 MB / 0.5795 GB, free: 1.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003053/0.6003, allocations: 192.3 kB / 0.5797 GB, free: 1.598 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.6005, allocations: 141.9 kB / 0.5798 GB, free: 1.496 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.728e-05/0.6005, allocations: 4 kB / 0.5799 GB, free: 1.492 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.6006, allocations: 34.25 kB / 0.5799 GB, free: 1.453 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.906e-06/0.6006, allocations: 0 / 0.5799 GB, free: 1.453 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.001422/0.602, allocations: 0.8663 MB / 0.5807 GB, free: 0.668 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.115e-05/0.6021, allocations: 81.3 kB / 0.5808 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003098/0.6024, allocations: 294.7 kB / 0.5811 GB, free: 332 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.664e-05/0.6025, allocations: 29.02 kB / 0.5811 GB, free: 300 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.6026, allocations: 285 kB / 0.5814 GB, free: 60 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.6027, allocations: 94.59 kB / 0.5815 GB, free: 15.97 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.746e-05/0.6028, allocations: 10.69 kB / 0.5815 GB, free: 15.97 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.6029, allocations: 348.2 kB / 0.5818 GB, free: 15.64 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.6031, allocations: 143 kB / 0.582 GB, free: 15.54 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003579/0.6035, allocations: 319.6 kB / 0.5823 GB, free: 15.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003342/0.6038, allocations: 210.4 kB / 0.5825 GB, free: 15.05 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.6039, allocations: 4 kB / 0.5825 GB, free: 15.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001067/0.6049, allocations: 0.5728 MB / 0.583 GB, free: 14.58 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.605, allocations: 8 kB / 0.583 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005833/0.6056, allocations: 316 kB / 0.5833 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003419/0.6059, allocations: 76.89 kB / 0.5834 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003351/0.6063, allocations: 102.9 kB / 0.5835 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/0.6078, allocations: 1.584 MB / 0.5851 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002561/0.6081, allocations: 33.88 kB / 0.5851 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.86e-05/0.6081, allocations: 26.61 kB / 0.5851 GB, free: 12.54 MB / 394.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.0001096/0.6082, allocations: 128.5 kB / 0.5852 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.381e-05/0.6083, allocations: 35.61 kB / 0.5853 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005737/0.6089, allocations: 345.2 kB / 0.5856 GB, free: 12.13 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-05/0.6089, allocations: 15.77 kB / 0.5856 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-06/0.6089, allocations: 3.938 kB / 0.5856 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.6089, allocations: 0 / 0.5856 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/0.6102, allocations: 0.8752 MB / 0.5865 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.6103, allocations: 3.953 kB / 0.5865 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00031/0.6106, allocations: 55.91 kB / 0.5865 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.345e-06/0.6106, allocations: 8.062 kB / 0.5865 GB, free: 11.28 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.774e-05/0.6106, allocations: 12.06 kB / 0.5865 GB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.6107, allocations: 4 kB / 0.5866 GB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.6107, allocations: 4 kB / 0.5866 GB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006864/0.6114, allocations: 0.5852 MB / 0.5871 GB, free: 10.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.482e-05/0.6114, allocations: 104.6 kB / 0.5872 GB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.81e-05/0.6115, allocations: 7.875 kB / 0.5872 GB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001822/0.6117, allocations: 11.98 kB / 0.5872 GB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.41e-05/0.6117, allocations: 23.67 kB / 0.5873 GB, free: 10.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.6118, allocations: 4 kB / 0.5873 GB, free: 10.59 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002152/0.612, allocations: 220.5 kB / 0.5875 GB, free: 10.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.612, allocations: 4 kB / 0.5875 GB, free: 10.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000467/0.6125, allocations: 107.2 kB / 0.5876 GB, free: 10.32 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 (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.001052/0.6135, allocations: 1.346 MB / 0.5889 GB, free: 9.047 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007553/0.6143, allocations: 479.3 kB / 0.5894 GB, free: 8.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.6143, allocations: 3.938 kB / 0.5894 GB, free: 8.656 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.6145, allocations: 146.5 kB / 0.5895 GB, free: 8.555 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00036/0.6149, allocations: 56.91 kB / 0.5896 GB, free: 8.516 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.6166, allocations: 0.9198 MB / 0.5905 GB, free: 7.645 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/0.6171, allocations: 0.8768 MB / 0.5913 GB, free: 6.758 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003197/0.6174, allocations: 115.2 kB / 0.5914 GB, free: 6.641 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000188/0.6176, allocations: 143.3 kB / 0.5916 GB, free: 6.602 MB / 394.7 MB Notification: Performance of SimCode: time 4.81e-07/0.6176, allocations: 0 / 0.5916 GB, free: 6.602 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0209/0.6385, allocations: 7.197 MB / 0.5986 GB, free: 15.45 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001617/0.6387, allocations: 183.1 kB / 0.5988 GB, free: 15.22 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.101/2.74, allocations: 0 / 0.5988 GB, free: 15.22 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.mat does not exist to compare? outputFormat=mat