Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_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.001676/0.001676, allocations: 177.1 kB / 8.35 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.894/1.894, 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.0009777/0.0009776, allocations: 91.58 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2287/0.2287, allocations: 37.98 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.713e-05/1.715e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1099, allocations: 56.32 MB / 467 MB, free: 6.473 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4422/0.5522, allocations: 100.7 MB / 0.5544 GB, free: 10.12 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002986/0.5526, allocations: 87.94 kB / 0.5544 GB, free: 10.04 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04447/0.5971, allocations: 14.97 MB / 0.5691 GB, free: 10.91 MB / 411.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.5971, allocations: 7.984 kB / 0.5691 GB, free: 10.9 MB / 411.1 MB Notification: Performance of Transformations before backend: time 2.962e-05/0.5971, allocations: 12 kB / 0.5691 GB, free: 10.89 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001264/0.5984, allocations: 0.6832 MB / 0.5697 GB, free: 10.16 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.5985, allocations: 8.031 kB / 0.5698 GB, free: 10.15 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006336/0.5991, allocations: 87.38 kB / 0.5698 GB, free: 10.06 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002236/0.6014, allocations: 0.8565 MB / 0.5707 GB, free: 9.164 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.6014, allocations: 12 kB / 0.5707 GB, free: 9.152 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.036e-05/0.6015, allocations: 31.84 kB / 0.5707 GB, free: 9.121 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007836/0.6023, allocations: 461.9 kB / 0.5712 GB, free: 8.672 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009059/0.6032, allocations: 0.613 MB / 0.5718 GB, free: 8.023 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.6032, allocations: 11.94 kB / 0.5718 GB, free: 8.012 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.315e-05/0.6033, allocations: 3.953 kB / 0.5718 GB, free: 8.008 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001593/0.6035, allocations: 64.73 kB / 0.5718 GB, free: 7.941 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003896/0.6074, allocations: 2.538 MB / 0.5743 GB, free: 5.285 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005445/0.6079, allocations: 329.3 kB / 0.5746 GB, free: 4.945 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003025/0.6083, allocations: 233.7 kB / 0.5748 GB, free: 4.711 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.205e-05/0.6083, allocations: 11.98 kB / 0.5749 GB, free: 4.699 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.921e-05/0.6084, allocations: 38.56 kB / 0.5749 GB, free: 4.652 MB / 411.1 MB Notification: Performance of pre-optimization done (n=43): time 3.296e-06/0.6084, allocations: 0 / 0.5749 GB, free: 4.652 MB / 411.1 MB Notification: Performance of matching and sorting (n=44): time 0.003159/0.6115, allocations: 1.52 MB / 0.5764 GB, free: 3.074 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/0.6116, allocations: 93.06 kB / 0.5765 GB, free: 2.965 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002622/0.6119, allocations: 214.3 kB / 0.5767 GB, free: 2.754 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.6119, allocations: 25.7 kB / 0.5767 GB, free: 2.723 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.6121, allocations: 248.4 kB / 0.5769 GB, free: 2.473 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.6123, allocations: 141.9 kB / 0.5771 GB, free: 2.332 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.261e-05/0.6123, allocations: 0 / 0.5771 GB, free: 2.332 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.6125, allocations: 358.7 kB / 0.5774 GB, free: 1.973 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002785/0.6128, allocations: 208.9 kB / 0.5776 GB, free: 1.77 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000369/0.6131, allocations: 317.9 kB / 0.5779 GB, free: 1.41 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000743/0.6139, allocations: 376 kB / 0.5783 GB, free: 1.039 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.6139, allocations: 0 / 0.5783 GB, free: 1.039 MB / 411.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001602/0.6155, allocations: 0.7831 MB / 0.579 GB, free: 252 kB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.6156, allocations: 8 kB / 0.579 GB, free: 244 kB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001231/0.6168, allocations: 0.6326 MB / 0.5797 GB, free: 15.6 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004261/0.6172, allocations: 101.6 kB / 0.5798 GB, free: 15.49 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003173/0.6176, allocations: 79.89 kB / 0.5798 GB, free: 15.41 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002967/0.6205, allocations: 2.88 MB / 0.5826 GB, free: 12.3 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004685/0.6211, allocations: 19.97 kB / 0.5827 GB, free: 12.28 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.657e-05/0.6211, allocations: 16 kB / 0.5827 GB, free: 12.27 MB / 427.1 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.0002021/0.6213, allocations: 121.2 kB / 0.5828 GB, free: 12.14 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001456/0.6228, allocations: 0.583 MB / 0.5834 GB, free: 11.55 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.844e-05/0.6229, allocations: 31.62 kB / 0.5834 GB, free: 11.52 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001338/0.6242, allocations: 0.6138 MB / 0.584 GB, free: 10.9 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.98e-05/0.6243, allocations: 27.91 kB / 0.584 GB, free: 10.88 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.6243, allocations: 0 / 0.584 GB, free: 10.88 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.415e-06/0.6244, allocations: 0 / 0.584 GB, free: 10.88 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002199/0.6266, allocations: 1.155 MB / 0.5851 GB, free: 9.672 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.6266, allocations: 0 / 0.5851 GB, free: 9.672 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004582/0.627, allocations: 71.88 kB / 0.5852 GB, free: 9.602 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.987e-06/0.6271, allocations: 4 kB / 0.5852 GB, free: 9.598 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.386e-05/0.6271, allocations: 11.98 kB / 0.5852 GB, free: 9.586 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.636e-06/0.6271, allocations: 4.062 kB / 0.5852 GB, free: 9.582 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/0.6271, allocations: 11.89 kB / 0.5852 GB, free: 9.57 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0015/0.6287, allocations: 0.9733 MB / 0.5862 GB, free: 8.555 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002401/0.6289, allocations: 144.6 kB / 0.5863 GB, free: 8.395 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.2e-05/0.629, allocations: 4 kB / 0.5863 GB, free: 8.391 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/0.6292, allocations: 19.95 kB / 0.5864 GB, free: 8.371 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.374e-05/0.6293, allocations: 16.22 kB / 0.5864 GB, free: 8.355 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.008e-05/0.6293, allocations: 15.98 kB / 0.5864 GB, free: 8.34 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002217/0.6295, allocations: 170 kB / 0.5866 GB, free: 8.176 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6295, allocations: 0 / 0.5866 GB, free: 8.176 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0006421/0.6302, allocations: 127.9 kB / 0.5867 GB, free: 8.051 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 (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.001978/0.6322, allocations: 1.76 MB / 0.5884 GB, free: 6.242 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.6335, allocations: 0.7424 MB / 0.5891 GB, free: 5.48 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.6335, allocations: 0 / 0.5891 GB, free: 5.48 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003371/0.6338, allocations: 240 kB / 0.5893 GB, free: 5.246 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004796/0.6343, allocations: 61.88 kB / 0.5894 GB, free: 5.18 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002343/0.6367, allocations: 1.037 MB / 0.5904 GB, free: 4.098 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006323/0.6373, allocations: 0.8858 MB / 0.5913 GB, free: 3.188 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0003787/0.6377, allocations: 107.2 kB / 0.5914 GB, free: 3.082 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002501/0.638, allocations: 143.4 kB / 0.5915 GB, free: 2.941 MB / 427.1 MB Notification: Performance of SimCode: time 1.393e-06/0.638, allocations: 0 / 0.5915 GB, free: 2.941 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03167/0.6697, allocations: 7.42 MB / 0.5988 GB, free: 11.53 MB / 443.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002763/0.67, allocations: 139.6 kB / 0.5989 GB, free: 11.34 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.205/2.875, allocations: 0 / 0.5989 GB, free: 11.34 MB / 443.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat does not exist to compare? outputFormat=mat