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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 80.5 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 181.7 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 223.3 MB / 241.2 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3564/0.3564, allocations: 38.09 MB / 330.4 MB, free: 14.2 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.0003551, allocations: 8 kB / 400.2 MB, free: 9.176 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3161, allocations: 59.14 MB / 459.3 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.004725/0.3209, allocations: 4.379 MB / 463.7 MB, free: 27.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00236/0.3233, allocations: 1.073 MB / 464.8 MB, free: 26.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004466/0.3238, allocations: 24.72 kB / 464.8 MB, free: 26.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.3241, allocations: 59.59 kB / 464.9 MB, free: 26.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001011/0.3251, allocations: 276.9 kB / 465.1 MB, free: 26.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004821/0.3256, allocations: 116.9 kB / 465.2 MB, free: 26.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00118/0.3268, allocations: 0.6228 MB / 465.9 MB, free: 26.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003509/0.3272, allocations: 102.8 kB / 466 MB, free: 25.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005455/0.3277, allocations: 186.4 kB / 466.1 MB, free: 25.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007774/0.3285, allocations: 260 kB / 466.4 MB, free: 25.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.306e-05/0.3286, allocations: 12.47 kB / 466.4 MB, free: 25.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.601e-05/0.3287, allocations: 13.25 kB / 466.4 MB, free: 25.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002721/0.329, allocations: 143.9 kB / 466.6 MB, free: 25.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.3291, allocations: 85.89 kB / 466.7 MB, free: 25.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004605/0.3296, allocations: 265 kB / 466.9 MB, free: 25.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.3296, allocations: 0.75 kB / 466.9 MB, free: 25.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3296, allocations: 4 kB / 466.9 MB, free: 25.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.3296, allocations: 0 / 466.9 MB, free: 25.66 MB / 350.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.001092/0.3307, allocations: 0.6069 MB / 467.5 MB, free: 25.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.3308, allocations: 9.219 kB / 467.5 MB, free: 25.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.52e-05/0.3309, allocations: 65.48 kB / 467.6 MB, free: 25.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.535e-05/0.3309, allocations: 43.39 kB / 467.6 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005293/0.3315, allocations: 354.6 kB / 468 MB, free: 24.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.103e-05/0.3315, allocations: 23.48 kB / 468 MB, free: 24.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.837e-05/0.3316, allocations: 24.94 kB / 468 MB, free: 24.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006617/0.3323, allocations: 351.1 kB / 468.4 MB, free: 24.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.3323, allocations: 1.797 kB / 468.4 MB, free: 24.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/0.3323, allocations: 11.16 kB / 468.4 MB, free: 24.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001385/0.3325, allocations: 25.28 kB / 468.4 MB, free: 24.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004906/0.333, allocations: 239.9 kB / 468.6 MB, free: 24.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001736/0.3347, allocations: 1.378 MB / 470 MB, free: 23.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003605/0.3351, allocations: 171.4 kB / 470.2 MB, free: 23.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002059/0.3353, allocations: 101.6 kB / 470.3 MB, free: 23.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.3353, allocations: 2.047 kB / 470.3 MB, free: 23.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.3354, allocations: 36.61 kB / 470.3 MB, free: 23.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.034e-06/0.3354, allocations: 0.9375 kB / 470.3 MB, free: 23.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001376/0.3368, allocations: 0.7608 MB / 471.1 MB, free: 22.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.3368, allocations: 79.52 kB / 471.2 MB, free: 22.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003288/0.3371, allocations: 299.1 kB / 471.5 MB, free: 22.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.3372, allocations: 30.8 kB / 471.5 MB, free: 22.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.3373, allocations: 216.5 kB / 471.7 MB, free: 22.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.466e-05/0.3374, allocations: 51.12 kB / 471.8 MB, free: 22.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.146e-05/0.3374, allocations: 6.188 kB / 471.8 MB, free: 22.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.3375, allocations: 338.1 kB / 472.1 MB, free: 21.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.3376, allocations: 67.2 kB / 472.2 MB, free: 21.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.3378, allocations: 164.1 kB / 472.3 MB, free: 21.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002072/0.338, allocations: 91.48 kB / 472.4 MB, free: 21.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.3381, allocations: 1.125 kB / 472.4 MB, free: 21.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005852/0.3386, allocations: 324.9 kB / 472.7 MB, free: 21.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.3387, allocations: 6.5 kB / 472.7 MB, free: 21.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.3387, allocations: 7.234 kB / 472.7 MB, free: 21.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002325/0.3389, allocations: 51.98 kB / 472.8 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/0.3391, allocations: 46.97 kB / 472.8 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001221/0.3404, allocations: 1.492 MB / 474.3 MB, free: 20.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001646/0.3406, allocations: 12.23 kB / 474.3 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.675e-05/0.3406, allocations: 17.83 kB / 474.4 MB, free: 20.14 MB / 350.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 () * Number of clocked 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.0002207/0.3408, allocations: 169.4 kB / 474.5 MB, free: 20 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.617e-05/0.3409, allocations: 28.53 kB / 474.5 MB, free: 19.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004653/0.3413, allocations: 239.8 kB / 474.8 MB, free: 19.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.3414, allocations: 2.922 kB / 474.8 MB, free: 19.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.3414, allocations: 1.188 kB / 474.8 MB, free: 19.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.3414, allocations: 0.6562 kB / 474.8 MB, free: 19.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009865/0.3424, allocations: 0.6457 MB / 475.4 MB, free: 19.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3424, allocations: 1.125 kB / 475.4 MB, free: 19.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.3425, allocations: 24.83 kB / 475.5 MB, free: 19.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001772/0.3427, allocations: 64.41 kB / 475.5 MB, free: 19.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.3427, allocations: 6.797 kB / 475.5 MB, free: 19.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009717/0.3437, allocations: 1.478 MB / 477 MB, free: 18.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3437, allocations: 1.375 kB / 477 MB, free: 18.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004876/0.3442, allocations: 413.2 kB / 477.4 MB, free: 17.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.605e-05/0.3443, allocations: 99.67 kB / 477.5 MB, free: 17.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.3443, allocations: 7.969 kB / 477.5 MB, free: 17.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.3445, allocations: 4.812 kB / 477.5 MB, free: 17.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.852e-05/0.3445, allocations: 25.72 kB / 477.5 MB, free: 17.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.3445, allocations: 4.875 kB / 477.5 MB, free: 17.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002177/0.3447, allocations: 207.9 kB / 477.8 MB, free: 17.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3448, allocations: 0 / 477.8 MB, free: 17.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004112/0.3452, allocations: 69.88 kB / 477.8 MB, free: 17.55 MB / 350.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 () * Number of clocked 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.0008485/0.346, allocations: 0.9359 MB / 478.8 MB, free: 16.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005857/0.3466, allocations: 303.3 kB / 479.1 MB, free: 16.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3466, allocations: 0 / 479.1 MB, free: 16.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003662/0.347, allocations: 209.6 kB / 479.3 MB, free: 16.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005595/0.3476, allocations: 59.84 kB / 479.3 MB, free: 16.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00275/0.3504, allocations: 1.983 MB / 481.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.3506, allocations: 0.8067 MB / 482.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001641/0.3508, allocations: 40.64 kB / 482.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/0.351, allocations: 103 kB / 482.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of SimCode: time 4.6e-07/0.351, allocations: 0 / 482.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01678/0.3678, allocations: 5.703 MB / 487.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000119/0.3679, allocations: 208.1 kB / 488.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.249, allocations: 0 / 488.2 MB, free: 10.36 MB / 350.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) Environment - environmentSimulation: 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