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.00191/0.00191, allocations: 175.9 kB / 8.347 MB, free: 0.7266 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.895/1.895, 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.001004/0.001004, allocations: 88.11 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.1942/0.1942, allocations: 37.99 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.504e-05/2.481e-05, allocations: 4 kB / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1439, allocations: 56.32 MB / 467 MB, free: 6.473 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5553/0.6993, allocations: 100.2 MB / 0.5539 GB, free: 10.61 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004406/0.6998, allocations: 96.83 kB / 0.554 GB, free: 10.52 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03966/0.7395, allocations: 12.46 MB / 0.5661 GB, free: 13.94 MB / 411.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.7396, allocations: 0 / 0.5661 GB, free: 13.94 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.317e-05/0.7396, allocations: 12 kB / 0.5661 GB, free: 13.93 MB / 411.1 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.001303/0.7409, allocations: 0.6646 MB / 0.5668 GB, free: 13.21 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.221e-05/0.741, allocations: 8.031 kB / 0.5668 GB, free: 13.21 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006059/0.7416, allocations: 95.28 kB / 0.5669 GB, free: 13.11 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00237/0.744, allocations: 0.8499 MB / 0.5677 GB, free: 12.22 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.002e-05/0.744, allocations: 15.94 kB / 0.5677 GB, free: 12.21 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.285e-05/0.7441, allocations: 24 kB / 0.5677 GB, free: 12.18 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000701/0.7448, allocations: 362.5 kB / 0.5681 GB, free: 11.83 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009884/0.7458, allocations: 0.5601 MB / 0.5686 GB, free: 11.21 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.112e-05/0.7459, allocations: 7.938 kB / 0.5686 GB, free: 11.2 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.121e-05/0.7459, allocations: 0 / 0.5686 GB, free: 11.2 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.135e-05/0.746, allocations: 36.72 kB / 0.5687 GB, free: 11.16 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003915/0.7499, allocations: 2.827 MB / 0.5714 GB, free: 8.195 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003335/0.7503, allocations: 189 kB / 0.5716 GB, free: 7.992 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001998/0.7505, allocations: 121.8 kB / 0.5717 GB, free: 7.867 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.329e-05/0.7506, allocations: 8 kB / 0.5717 GB, free: 7.859 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.115e-05/0.7506, allocations: 42.69 kB / 0.5718 GB, free: 7.809 MB / 411.1 MB Notification: Performance of pre-optimization done (n=24): time 2.875e-06/0.7507, allocations: 0 / 0.5718 GB, free: 7.809 MB / 411.1 MB Notification: Performance of matching and sorting (n=25): time 0.001712/0.7524, allocations: 0.8329 MB / 0.5726 GB, free: 6.918 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.271e-05/0.7525, allocations: 81.3 kB / 0.5727 GB, free: 6.82 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000362/0.7528, allocations: 277 kB / 0.5729 GB, free: 6.547 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.7529, allocations: 25.7 kB / 0.573 GB, free: 6.516 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002455/0.7531, allocations: 291.2 kB / 0.5732 GB, free: 6.223 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.863e-05/0.7533, allocations: 87.5 kB / 0.5733 GB, free: 6.137 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.72e-05/0.7533, allocations: 0 / 0.5733 GB, free: 6.137 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0002093/0.7535, allocations: 346.8 kB / 0.5737 GB, free: 5.789 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/0.7537, allocations: 128.8 kB / 0.5738 GB, free: 5.664 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003336/0.754, allocations: 318.2 kB / 0.5741 GB, free: 5.273 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003144/0.7544, allocations: 200.9 kB / 0.5743 GB, free: 5.078 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.7544, allocations: 4 kB / 0.5743 GB, free: 5.074 MB / 411.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001067/0.7555, allocations: 0.5395 MB / 0.5748 GB, free: 4.527 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.7555, allocations: 11.94 kB / 0.5748 GB, free: 4.516 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005794/0.7561, allocations: 316.4 kB / 0.5751 GB, free: 4.203 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000363/0.7565, allocations: 77.27 kB / 0.5752 GB, free: 4.125 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003537/0.7568, allocations: 95.81 kB / 0.5753 GB, free: 4.031 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001685/0.7585, allocations: 1.53 MB / 0.5768 GB, free: 2.383 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.7588, allocations: 23.95 kB / 0.5768 GB, free: 2.359 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.085e-05/0.7589, allocations: 16 kB / 0.5768 GB, free: 2.344 MB / 411.1 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.0001411/0.759, allocations: 128.9 kB / 0.5769 GB, free: 2.211 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004713/0.7595, allocations: 294.3 kB / 0.5772 GB, free: 1.918 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.449e-05/0.7595, allocations: 27.62 kB / 0.5772 GB, free: 1.891 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005834/0.7601, allocations: 332.5 kB / 0.5776 GB, free: 1.559 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.7602, allocations: 4 kB / 0.5776 GB, free: 1.555 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.7602, allocations: 0 / 0.5776 GB, free: 1.555 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.7602, allocations: 7.953 kB / 0.5776 GB, free: 1.547 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001293/0.7615, allocations: 0.7814 MB / 0.5783 GB, free: 0.7148 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.7615, allocations: 0 / 0.5783 GB, free: 0.7148 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003071/0.7618, allocations: 63.95 kB / 0.5784 GB, free: 0.6523 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.7618, allocations: 4 kB / 0.5784 GB, free: 0.6484 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.7619, allocations: 11.95 kB / 0.5784 GB, free: 0.6367 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.7619, allocations: 0 / 0.5784 GB, free: 0.6367 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.7619, allocations: 4 kB / 0.5784 GB, free: 0.6328 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007136/0.7626, allocations: 0.5726 MB / 0.579 GB, free: 16 kB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.7627, allocations: 108.8 kB / 0.5791 GB, free: 15.89 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.666e-05/0.7628, allocations: 4 kB / 0.5791 GB, free: 15.89 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.7629, allocations: 15.92 kB / 0.5791 GB, free: 15.87 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.714e-05/0.763, allocations: 11.98 kB / 0.5791 GB, free: 15.86 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.763, allocations: 11.98 kB / 0.5791 GB, free: 15.85 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002004/0.7632, allocations: 208.6 kB / 0.5793 GB, free: 15.65 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7632, allocations: 0 / 0.5793 GB, free: 15.65 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0004833/0.7637, allocations: 100 kB / 0.5794 GB, free: 15.55 MB / 427.1 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.001102/0.7648, allocations: 1.332 MB / 0.5807 GB, free: 14.17 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0006905/0.7655, allocations: 446.9 kB / 0.5811 GB, free: 13.73 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.7656, allocations: 4.25 kB / 0.5812 GB, free: 13.72 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.7657, allocations: 135.8 kB / 0.5813 GB, free: 13.59 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003954/0.7661, allocations: 61.03 kB / 0.5813 GB, free: 13.53 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001573/0.7677, allocations: 0.8889 MB / 0.5822 GB, free: 12.59 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004581/0.7682, allocations: 0.8851 MB / 0.5831 GB, free: 11.67 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0002992/0.7685, allocations: 115.2 kB / 0.5832 GB, free: 11.56 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001965/0.7687, allocations: 143.4 kB / 0.5833 GB, free: 11.42 MB / 427.1 MB Notification: Performance of SimCode: time 2.91e-07/0.7687, allocations: 0 / 0.5833 GB, free: 11.42 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02989/0.7986, allocations: 6.685 MB / 0.5898 GB, free: 4.75 MB / 427.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002206/0.7989, allocations: 145.3 kB / 0.59 GB, free: 4.559 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.187/2.986, allocations: 0 / 0.59 GB, free: 4.559 MB / 427.1 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