Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_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.001619/0.001619, allocations: 176.6 kB / 8.35 MB, free: 0.7188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008491/0.0008491, allocations: 84.2 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1715/0.1715, allocations: 37.99 MB / 348 MB, free: 7.762 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.802e-05/1.804e-05, allocations: 4 kB / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1112, allocations: 56.33 MB / 467 MB, free: 6.457 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4182/0.5295, allocations: 94.53 MB / 0.5484 GB, free: 256 kB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/0.5298, allocations: 83.95 kB / 0.5485 GB, free: 172 kB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02109/0.5509, allocations: 7.333 MB / 0.5556 GB, free: 8.766 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.551, allocations: 0.75 kB / 0.5556 GB, free: 8.766 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.414e-05/0.551, allocations: 12 kB / 0.5556 GB, free: 8.754 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0008122/0.5518, allocations: 0.5786 MB / 0.5562 GB, free: 8.133 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.5519, allocations: 12.03 kB / 0.5562 GB, free: 8.121 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.76e-05/0.552, allocations: 39.83 kB / 0.5562 GB, free: 8.082 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001813/0.5538, allocations: 0.797 MB / 0.557 GB, free: 7.246 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.5538, allocations: 15.94 kB / 0.557 GB, free: 7.23 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.458e-05/0.5539, allocations: 15.94 kB / 0.557 GB, free: 7.215 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003475/0.5542, allocations: 213 kB / 0.5573 GB, free: 7.008 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004813/0.5547, allocations: 307.6 kB / 0.5575 GB, free: 6.676 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.5548, allocations: 4 kB / 0.5575 GB, free: 6.672 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.475e-05/0.5548, allocations: 0 / 0.5575 GB, free: 6.672 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.5548, allocations: 12 kB / 0.5576 GB, free: 6.66 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001506/0.5563, allocations: 1.307 MB / 0.5588 GB, free: 5.273 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003258/0.5567, allocations: 153 kB / 0.559 GB, free: 5.105 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001912/0.5569, allocations: 97.73 kB / 0.5591 GB, free: 5.004 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.5569, allocations: 4 kB / 0.5591 GB, free: 5 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.5569, allocations: 30.56 kB / 0.5591 GB, free: 4.961 MB / 395.1 MB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.5569, allocations: 0 / 0.5591 GB, free: 4.961 MB / 395.1 MB Notification: Performance of matching and sorting (n=15): time 0.001001/0.5579, allocations: 0.5773 MB / 0.5597 GB, free: 4.328 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.558, allocations: 85.11 kB / 0.5598 GB, free: 4.227 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002511/0.5583, allocations: 253 kB / 0.56 GB, free: 3.973 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.5583, allocations: 25.7 kB / 0.56 GB, free: 3.941 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.5584, allocations: 211.8 kB / 0.5602 GB, free: 3.73 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.548e-05/0.5585, allocations: 55.2 kB / 0.5603 GB, free: 3.676 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.247e-06/0.5585, allocations: 0 / 0.5603 GB, free: 3.676 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.5587, allocations: 338.8 kB / 0.5606 GB, free: 3.336 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.884e-05/0.5588, allocations: 60 kB / 0.5607 GB, free: 3.277 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.5589, allocations: 149.9 kB / 0.5608 GB, free: 3.086 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000127/0.5591, allocations: 86.92 kB / 0.5609 GB, free: 3.004 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.5591, allocations: 8 kB / 0.5609 GB, free: 2.996 MB / 395.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004206/0.5595, allocations: 273.8 kB / 0.5611 GB, free: 2.719 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.5595, allocations: 7.953 kB / 0.5612 GB, free: 2.711 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.5596, allocations: 4.438 kB / 0.5612 GB, free: 2.707 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001835/0.5598, allocations: 56.81 kB / 0.5612 GB, free: 2.648 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/0.5599, allocations: 43.92 kB / 0.5613 GB, free: 2.605 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.5611, allocations: 1.408 MB / 0.5626 GB, free: 1.082 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.5613, allocations: 4 kB / 0.5626 GB, free: 1.078 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/0.5613, allocations: 8 kB / 0.5626 GB, free: 1.07 MB / 395.1 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.5614, allocations: 126.7 kB / 0.5628 GB, free: 0.9414 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000322/0.5617, allocations: 194 kB / 0.5629 GB, free: 0.7422 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.836e-05/0.5618, allocations: 31.62 kB / 0.563 GB, free: 0.7109 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003626/0.5622, allocations: 212.5 kB / 0.5632 GB, free: 0.4922 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.5622, allocations: 7.984 kB / 0.5632 GB, free: 496 kB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.5622, allocations: 0 / 0.5632 GB, free: 496 kB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.5622, allocations: 0 / 0.5632 GB, free: 496 kB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007685/0.563, allocations: 0.5669 MB / 0.5637 GB, free: 15.86 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.563, allocations: 0 / 0.5637 GB, free: 15.86 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.5631, allocations: 16 kB / 0.5638 GB, free: 15.85 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001577/0.5633, allocations: 56.83 kB / 0.5638 GB, free: 15.79 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.5633, allocations: 15.92 kB / 0.5638 GB, free: 15.77 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/0.5644, allocations: 1.416 MB / 0.5652 GB, free: 14.25 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5644, allocations: 0 / 0.5652 GB, free: 14.25 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004701/0.5649, allocations: 405.1 kB / 0.5656 GB, free: 13.81 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.026e-05/0.565, allocations: 104.8 kB / 0.5657 GB, free: 13.69 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.494e-05/0.5651, allocations: 4 kB / 0.5657 GB, free: 13.69 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.5652, allocations: 0 / 0.5657 GB, free: 13.69 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/0.5652, allocations: 15.97 kB / 0.5657 GB, free: 13.67 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.5653, allocations: 7.984 kB / 0.5657 GB, free: 13.66 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001957/0.5655, allocations: 196.6 kB / 0.5659 GB, free: 13.47 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5655, allocations: 0 / 0.5659 GB, free: 13.47 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0003769/0.5658, allocations: 72.06 kB / 0.566 GB, free: 13.4 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008971/0.5667, allocations: 1.081 MB / 0.567 GB, free: 12.28 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0004521/0.5672, allocations: 265.5 kB / 0.5673 GB, free: 12.01 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.5672, allocations: 0 / 0.5673 GB, free: 12.01 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003048/0.5675, allocations: 186.7 kB / 0.5675 GB, free: 11.82 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004015/0.568, allocations: 52.8 kB / 0.5675 GB, free: 11.77 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.5691, allocations: 0.6107 MB / 0.5681 GB, free: 11.11 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.5695, allocations: 0.8107 MB / 0.5689 GB, free: 10.28 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.5696, allocations: 47.27 kB / 0.5689 GB, free: 10.23 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.5698, allocations: 99.39 kB / 0.569 GB, free: 10.14 MB / 411.1 MB Notification: Performance of SimCode: time 2.4e-07/0.5698, allocations: 0 / 0.569 GB, free: 10.14 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02494/0.5947, allocations: 5.049 MB / 0.574 GB, free: 5.098 MB / 411.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/0.595, allocations: 161.2 kB / 0.5741 GB, free: 4.891 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.982/2.577, allocations: 0 / 0.5741 GB, free: 4.891 MB / 411.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat does not exist to compare? outputFormat=mat