Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.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.AC3ph.Generation.PVsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PVsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource",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.0008712/0.0008714, allocations: 90.48 kB / 16.31 MB, free: 6.453 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.00115/0.00115, allocations: 180.7 kB / 17.21 MB, free: 6.328 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.496/1.496, allocations: 223.2 MB / 241.2 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3135/0.3135, allocations: 38.08 MB / 330.4 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005064/0.0005066, allocations: 8 kB / 400.2 MB, free: 9.176 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.3704, allocations: 59.16 MB / 459.3 MB, free: 30.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PVsource): time 0.004888/0.3753, allocations: 4.607 MB / 463.9 MB, free: 27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002389/0.3778, allocations: 1.415 MB / 465.3 MB, free: 26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002728/0.378, allocations: 26.22 kB / 465.4 MB, free: 25.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003548/0.3784, allocations: 104.7 kB / 465.5 MB, free: 25.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006747/0.3791, allocations: 267.3 kB / 465.7 MB, free: 25.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005291/0.3796, allocations: 167.8 kB / 465.9 MB, free: 25.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007568/0.3804, allocations: 0.6576 MB / 466.5 MB, free: 25.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008476/0.3813, allocations: 0.5208 MB / 467.1 MB, free: 25.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003566/0.3816, allocations: 211 kB / 467.3 MB, free: 25.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004935/0.3821, allocations: 272.7 kB / 467.5 MB, free: 24.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.02e-05/0.3822, allocations: 16.84 kB / 467.6 MB, free: 24.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002519/0.3824, allocations: 89.55 kB / 467.6 MB, free: 24.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002124/0.3827, allocations: 167.8 kB / 467.8 MB, free: 24.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.3828, allocations: 105.1 kB / 467.9 MB, free: 24.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000555/0.3833, allocations: 392.7 kB / 468.3 MB, free: 24.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3834, allocations: 0 / 468.3 MB, free: 24.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3834, allocations: 0 / 468.3 MB, free: 24.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.3834, allocations: 0 / 468.3 MB, free: 24.74 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.0009896/0.3844, allocations: 0.6221 MB / 468.9 MB, free: 24.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3844, allocations: 14.58 kB / 468.9 MB, free: 24.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001074/0.3845, allocations: 72.38 kB / 469 MB, free: 24.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005603/0.3851, allocations: 94 kB / 469.1 MB, free: 24.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005486/0.3857, allocations: 387.9 kB / 469.5 MB, free: 23.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.3857, allocations: 34.58 kB / 469.5 MB, free: 23.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.3858, allocations: 43.52 kB / 469.6 MB, free: 23.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000756/0.3866, allocations: 470.5 kB / 470 MB, free: 23.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.3866, allocations: 4.828 kB / 470 MB, free: 23.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.932e-05/0.3867, allocations: 11.19 kB / 470 MB, free: 23.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001056/0.3868, allocations: 32.48 kB / 470.1 MB, free: 23.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006042/0.3874, allocations: 336.5 kB / 470.4 MB, free: 23.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002066/0.3895, allocations: 1.7 MB / 472.1 MB, free: 22.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002935/0.3898, allocations: 150.6 kB / 472.2 MB, free: 22.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.39, allocations: 100.9 kB / 472.3 MB, free: 22.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.39, allocations: 2.781 kB / 472.3 MB, free: 22.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.39, allocations: 40.69 kB / 472.4 MB, free: 22.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.433e-06/0.39, allocations: 0 / 472.4 MB, free: 22.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001457/0.3915, allocations: 0.8554 MB / 473.2 MB, free: 21.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.3915, allocations: 87.39 kB / 473.3 MB, free: 21.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000322/0.3919, allocations: 303.7 kB / 473.6 MB, free: 21.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.3919, allocations: 27.27 kB / 473.6 MB, free: 21.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/0.3921, allocations: 256.2 kB / 473.9 MB, free: 20.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.402e-05/0.3921, allocations: 58.14 kB / 473.9 MB, free: 20.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.269e-05/0.3921, allocations: 5.188 kB / 474 MB, free: 20.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.432e-05/0.3922, allocations: 344.6 kB / 474.3 MB, free: 20.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.3924, allocations: 91.89 kB / 474.4 MB, free: 20.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002104/0.3926, allocations: 194.2 kB / 474.6 MB, free: 20.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001981/0.3928, allocations: 126.5 kB / 474.7 MB, free: 20.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.3928, allocations: 1.375 kB / 474.7 MB, free: 20.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008304/0.3937, allocations: 462 kB / 475.1 MB, free: 20.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.3937, allocations: 5.938 kB / 475.1 MB, free: 20.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006011/0.3943, allocations: 295.3 kB / 475.4 MB, free: 20 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004711/0.3948, allocations: 125.9 kB / 475.6 MB, free: 19.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.395, allocations: 57.48 kB / 475.6 MB, free: 19.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00234/0.3974, allocations: 2.154 MB / 477.8 MB, free: 18.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/0.3976, allocations: 9.656 kB / 477.8 MB, free: 18.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.514e-05/0.3976, allocations: 14.53 kB / 477.8 MB, free: 18.22 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 (29): * Single equations (assignments): 28 * 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: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.00024/0.3979, allocations: 191.1 kB / 478 MB, free: 18.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.398e-05/0.3979, allocations: 29.27 kB / 478 MB, free: 18.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004056/0.3983, allocations: 248.8 kB / 478.3 MB, free: 17.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.3984, allocations: 2.656 kB / 478.3 MB, free: 17.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3984, allocations: 5.109 kB / 478.3 MB, free: 17.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3984, allocations: 0 / 478.3 MB, free: 17.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009952/0.3994, allocations: 0.7176 MB / 479 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.3994, allocations: 1.375 kB / 479 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001999/0.3996, allocations: 37.8 kB / 479 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.883e-05/0.3997, allocations: 35.95 kB / 479.1 MB, free: 17.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.3997, allocations: 2.562 kB / 479.1 MB, free: 17.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009126/0.4006, allocations: 1.487 MB / 480.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.4007, allocations: 5.453 kB / 480.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004977/0.4012, allocations: 410.4 kB / 480.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.166e-05/0.4012, allocations: 113.7 kB / 481.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.031e-05/0.4013, allocations: 7.547 kB / 481.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.4014, allocations: 10.92 kB / 481.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.4015, allocations: 10.64 kB / 481.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.4015, allocations: 7.969 kB / 481.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002261/0.4017, allocations: 211.8 kB / 481.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4017, allocations: 0 / 481.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005616/0.4023, allocations: 91.16 kB / 481.4 MB, free: 15.21 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * 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): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007585/0.4031, allocations: 0.9564 MB / 482.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006405/0.4037, allocations: 402.2 kB / 482.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4037, allocations: 0 / 482.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002962/0.404, allocations: 231 kB / 483 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000479/0.4045, allocations: 59.81 kB / 483 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003187/0.4077, allocations: 2.353 MB / 485.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.4081, allocations: 0.8449 MB / 486.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002183/0.4083, allocations: 59.14 kB / 486.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.4084, allocations: 123.5 kB / 486.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4085, allocations: 7.938 kB / 486.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.4261, allocations: 6.974 MB / 493.4 MB, free: 5.047 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001469/0.4263, allocations: 227 kB / 493.6 MB, free: 4.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.962/2.389, allocations: 0 / 493.6 MB, free: 4.801 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_res.mat does not exist to compare? outputFormat=mat