Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.001192/0.001192, allocations: 85.62 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.001879/0.001879, allocations: 180.6 kB / 17.21 MB, free: 6.32 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.428/1.428, allocations: 223.3 MB / 241.2 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3815/0.3815, allocations: 38.08 MB / 330.4 MB, free: 14.13 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005279/0.0005281, allocations: 8 kB / 400.2 MB, free: 9.121 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3484, allocations: 59.16 MB / 459.3 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005277/0.3537, allocations: 4.001 MB / 463.3 MB, free: 27.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00199/0.3558, allocations: 1.005 MB / 464.3 MB, free: 26.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002676/0.3561, allocations: 24.12 kB / 464.4 MB, free: 26.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002489/0.3563, allocations: 55.33 kB / 464.4 MB, free: 26.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006476/0.357, allocations: 193.5 kB / 464.6 MB, free: 26.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003377/0.3573, allocations: 104.6 kB / 464.7 MB, free: 26.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006459/0.358, allocations: 420.8 kB / 465.1 MB, free: 26.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002446/0.3582, allocations: 62.7 kB / 465.2 MB, free: 26.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002919/0.3585, allocations: 138.3 kB / 465.3 MB, free: 26.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004158/0.359, allocations: 165.5 kB / 465.5 MB, free: 26.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.461e-05/0.359, allocations: 9.906 kB / 465.5 MB, free: 26.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.562e-05/0.3591, allocations: 10.81 kB / 465.5 MB, free: 26.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000141/0.3592, allocations: 71.69 kB / 465.6 MB, free: 26.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.59e-05/0.3593, allocations: 70.39 kB / 465.6 MB, free: 26.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003315/0.3597, allocations: 182.9 kB / 465.8 MB, free: 26.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.628e-06/0.3597, allocations: 2.109 kB / 465.8 MB, free: 26.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3597, allocations: 3.938 kB / 465.8 MB, free: 26.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.3597, allocations: 3.938 kB / 465.8 MB, free: 26.09 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008112/0.3605, allocations: 0.521 MB / 466.3 MB, free: 25.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.3606, allocations: 10.28 kB / 466.3 MB, free: 25.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.111e-05/0.3606, allocations: 53.69 kB / 466.4 MB, free: 25.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.904e-05/0.3607, allocations: 26.39 kB / 466.4 MB, free: 25.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004204/0.3611, allocations: 301 kB / 466.7 MB, free: 25.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.3612, allocations: 21.11 kB / 466.7 MB, free: 25.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.171e-05/0.3612, allocations: 21.89 kB / 466.8 MB, free: 25.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004391/0.3616, allocations: 268.6 kB / 467 MB, free: 25.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.3617, allocations: 3.938 kB / 467 MB, free: 25.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.343e-05/0.3617, allocations: 11.72 kB / 467 MB, free: 25.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.3617, allocations: 5.344 kB / 467 MB, free: 25.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002954/0.362, allocations: 163.9 kB / 467.2 MB, free: 25.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.3632, allocations: 1.17 MB / 468.4 MB, free: 24.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001493/0.3634, allocations: 77.92 kB / 468.5 MB, free: 23.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.917e-05/0.3634, allocations: 31.61 kB / 468.5 MB, free: 23.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.3635, allocations: 5.109 kB / 468.5 MB, free: 23.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.243e-05/0.3635, allocations: 35.94 kB / 468.5 MB, free: 23.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.402e-06/0.3635, allocations: 5.5 kB / 468.5 MB, free: 23.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007437/0.3643, allocations: 408.6 kB / 468.9 MB, free: 23.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.353e-05/0.3643, allocations: 79.78 kB / 469 MB, free: 23.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002674/0.3646, allocations: 241.6 kB / 469.2 MB, free: 23.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.101e-05/0.3646, allocations: 31.11 kB / 469.3 MB, free: 23.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.3647, allocations: 191.9 kB / 469.5 MB, free: 23.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.727e-05/0.3648, allocations: 34.17 kB / 469.5 MB, free: 23.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-06/0.3648, allocations: 1.25 kB / 469.5 MB, free: 23.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.934e-05/0.3649, allocations: 330.3 kB / 469.8 MB, free: 22.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.372e-05/0.3649, allocations: 26.12 kB / 469.8 MB, free: 22.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000118/0.365, allocations: 127.7 kB / 470 MB, free: 22.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.032e-05/0.3651, allocations: 48.53 kB / 470 MB, free: 22.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3652, allocations: 1.125 kB / 470 MB, free: 22.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002643/0.3654, allocations: 188 kB / 470.2 MB, free: 22.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.3654, allocations: 7.312 kB / 470.2 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.3655, allocations: 2.969 kB / 470.2 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.3655, allocations: 6.797 kB / 470.2 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.3656, allocations: 39.86 kB / 470.3 MB, free: 22.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.3657, allocations: 4.797 kB / 470.3 MB, free: 22.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.419e-05/0.3658, allocations: 13.36 kB / 470.3 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.3658, allocations: 11.75 kB / 470.3 MB, free: 22.48 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 (22): * Single equations (assignments): 22 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001131/0.3659, allocations: 147.6 kB / 470.4 MB, free: 22.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.849e-05/0.366, allocations: 21.42 kB / 470.4 MB, free: 22.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001605/0.3661, allocations: 94.8 kB / 470.5 MB, free: 22.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3661, allocations: 1.594 kB / 470.5 MB, free: 22.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.3661, allocations: 5.125 kB / 470.5 MB, free: 22.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3662, allocations: 0.5156 kB / 470.5 MB, free: 22.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004494/0.3666, allocations: 422.6 kB / 471 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3666, allocations: 1.219 kB / 471 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.119e-05/0.3667, allocations: 23.45 kB / 471 MB, free: 21.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3667, allocations: 1.438 kB / 471 MB, free: 21.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.3667, allocations: 2.562 kB / 471 MB, free: 21.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.3668, allocations: 1.781 kB / 471 MB, free: 21.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3668, allocations: 5.281 kB / 471 MB, free: 21.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002251/0.367, allocations: 230.9 kB / 471.2 MB, free: 21.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.909e-05/0.367, allocations: 96.56 kB / 471.3 MB, free: 21.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.991e-05/0.3671, allocations: 9.031 kB / 471.3 MB, free: 21.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.02e-05/0.3672, allocations: 1.156 kB / 471.3 MB, free: 21.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.611e-05/0.3672, allocations: 6.344 kB / 471.3 MB, free: 21.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.3672, allocations: 2.188 kB / 471.3 MB, free: 21.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001428/0.3674, allocations: 168.9 kB / 471.5 MB, free: 21.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3674, allocations: 0 / 471.5 MB, free: 21.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003162/0.3677, allocations: 45.09 kB / 471.5 MB, free: 21.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003752/0.3681, allocations: 0.7628 MB / 472.3 MB, free: 20.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001809/0.3683, allocations: 85.78 kB / 472.4 MB, free: 20.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.3683, allocations: 3.938 kB / 472.4 MB, free: 20.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.474e-05/0.3683, allocations: 26.95 kB / 472.4 MB, free: 20.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004785/0.3688, allocations: 54.23 kB / 472.5 MB, free: 20.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001862/0.3707, allocations: 1.365 MB / 473.8 MB, free: 19.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.371, allocations: 0.7579 MB / 474.6 MB, free: 19.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000126/0.3711, allocations: 35.11 kB / 474.6 MB, free: 19.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.3712, allocations: 73.25 kB / 474.7 MB, free: 19.04 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3712, allocations: 0 / 474.7 MB, free: 19.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01635/0.3876, allocations: 3.869 MB / 478.6 MB, free: 18.09 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/0.3878, allocations: 194 kB / 478.8 MB, free: 17.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/2.138, allocations: 0 / 478.8 MB, free: 17.85 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat does not exist to compare? outputFormat=mat