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.001755/0.001755, allocations: 103.5 kB / 17.06 MB, free: 6.098 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.001833/0.001833, allocations: 192.1 kB / 18 MB, free: 5.172 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.447/1.447, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1838/0.1838, allocations: 38.03 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 71.88 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3179, allocations: 58.05 MB / 0.5036 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PVsource): time 0.005005/0.3229, allocations: 4.585 MB / 0.5081 GB, free: 4.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.3249, allocations: 1.318 MB / 0.5094 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002124/0.3251, allocations: 18.09 kB / 0.5094 GB, free: 3.426 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001035/0.3262, allocations: 395.3 kB / 0.5098 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005351/0.3267, allocations: 249.8 kB / 0.51 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004369/0.3272, allocations: 175.8 kB / 0.5102 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005554/0.3278, allocations: 0.5599 MB / 0.5107 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003959/0.3282, allocations: 290.5 kB / 0.511 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003188/0.3285, allocations: 252.4 kB / 0.5113 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004302/0.3289, allocations: 277.4 kB / 0.5115 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.409e-05/0.329, allocations: 30.34 kB / 0.5115 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000269/0.3293, allocations: 126.9 kB / 0.5117 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001801/0.3295, allocations: 190.2 kB / 0.5119 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002125/0.3297, allocations: 220.9 kB / 0.5121 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006397/0.3303, allocations: 0.5051 MB / 0.5126 GB, free: 1.969 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3303, allocations: 5.188 kB / 0.5126 GB, free: 1.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3303, allocations: 0 / 0.5126 GB, free: 1.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.422e-05/0.3304, allocations: 0 / 0.5126 GB, free: 1.965 MB / 382.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.001053/0.3314, allocations: 0.7112 MB / 0.5133 GB, free: 1.395 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.3315, allocations: 14.12 kB / 0.5133 GB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.584e-05/0.3315, allocations: 73.55 kB / 0.5133 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005824/0.3321, allocations: 87.3 kB / 0.5134 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005969/0.3327, allocations: 418.7 kB / 0.5138 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.3328, allocations: 26.47 kB / 0.5138 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.3329, allocations: 50.55 kB / 0.5139 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007208/0.3336, allocations: 473.7 kB / 0.5143 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.3337, allocations: 5.188 kB / 0.5143 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.535e-05/0.3337, allocations: 12.19 kB / 0.5144 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/0.3338, allocations: 28.19 kB / 0.5144 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005156/0.3344, allocations: 334.4 kB / 0.5147 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002117/0.3365, allocations: 1.704 MB / 0.5164 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003409/0.3368, allocations: 154.1 kB / 0.5165 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000214/0.3371, allocations: 111.5 kB / 0.5166 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.113e-05/0.3371, allocations: 1.625 kB / 0.5166 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.381e-05/0.3371, allocations: 32.73 kB / 0.5167 GB, free: 15.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.914e-06/0.3371, allocations: 0.5 kB / 0.5167 GB, free: 15.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.001821/0.339, allocations: 0.8654 MB / 0.5175 GB, free: 14.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/0.339, allocations: 79.48 kB / 0.5176 GB, free: 14.49 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004037/0.3395, allocations: 313.6 kB / 0.5179 GB, free: 14.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.3395, allocations: 27.2 kB / 0.5179 GB, free: 14.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002082/0.3397, allocations: 258.1 kB / 0.5182 GB, free: 14.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.198e-05/0.3398, allocations: 61.3 kB / 0.5182 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.3399, allocations: 62.69 kB / 0.5183 GB, free: 13.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002263/0.3401, allocations: 352.7 kB / 0.5186 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.3403, allocations: 96.72 kB / 0.5187 GB, free: 13.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.3405, allocations: 193.3 kB / 0.5189 GB, free: 13.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004248/0.341, allocations: 308 kB / 0.5192 GB, free: 13.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.341, allocations: 5.844 kB / 0.5192 GB, free: 13.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009119/0.3419, allocations: 459.8 kB / 0.5196 GB, free: 13.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.3419, allocations: 13.7 kB / 0.5196 GB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006062/0.3425, allocations: 286.1 kB / 0.5199 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004856/0.343, allocations: 133.3 kB / 0.52 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001974/0.3432, allocations: 53.09 kB / 0.5201 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003027/0.3463, allocations: 2.379 MB / 0.5224 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002222/0.3465, allocations: 20.83 kB / 0.5224 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.446e-05/0.3466, allocations: 22.47 kB / 0.5224 GB, free: 11.01 MB / 398.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002499/0.3468, allocations: 183.6 kB / 0.5226 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.179e-05/0.3469, allocations: 29.45 kB / 0.5227 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004655/0.3474, allocations: 249 kB / 0.5229 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.3474, allocations: 5.922 kB / 0.5229 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.3474, allocations: 1.375 kB / 0.5229 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3474, allocations: 4.656 kB / 0.5229 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.3486, allocations: 0.7139 MB / 0.5236 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3486, allocations: 1.953 kB / 0.5236 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002194/0.3488, allocations: 44.44 kB / 0.5236 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000107/0.3489, allocations: 31.89 kB / 0.5237 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.349, allocations: 3.797 kB / 0.5237 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001439/0.3504, allocations: 1.591 MB / 0.5252 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3504, allocations: 1.469 kB / 0.5252 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005934/0.351, allocations: 429.4 kB / 0.5256 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.3511, allocations: 110.5 kB / 0.5257 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.312e-05/0.3512, allocations: 4.156 kB / 0.5257 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.3514, allocations: 14.17 kB / 0.5258 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.3514, allocations: 11.14 kB / 0.5258 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.3514, allocations: 4.688 kB / 0.5258 GB, free: 8.312 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002511/0.3517, allocations: 223 kB / 0.526 GB, free: 8.188 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3517, allocations: 0 / 0.526 GB, free: 8.188 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005126/0.3522, allocations: 87.75 kB / 0.5261 GB, free: 8.18 MB / 398.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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009402/0.3531, allocations: 0.9539 MB / 0.527 GB, free: 7.379 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008003/0.354, allocations: 398.4 kB / 0.5274 GB, free: 7.168 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/0.354, allocations: 1.531 kB / 0.5274 GB, free: 7.168 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003716/0.3544, allocations: 234.2 kB / 0.5276 GB, free: 7.012 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005029/0.3549, allocations: 66.2 kB / 0.5277 GB, free: 6.988 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005075/0.36, allocations: 3.516 MB / 0.5311 GB, free: 4.648 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006223/0.3606, allocations: 0.8445 MB / 0.5319 GB, free: 3.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002113/0.3608, allocations: 61.03 kB / 0.532 GB, free: 3.922 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001948/0.361, allocations: 122 kB / 0.5321 GB, free: 3.828 MB / 398.1 MB Notification: Performance of SimCode: time 6.42e-07/0.361, allocations: 0 / 0.5321 GB, free: 3.828 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03619/0.3972, allocations: 7.509 MB / 0.5394 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/12.16, allocations: 6.719 kB / 0.5394 GB, free: 0.7695 MB / 398.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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PVsource.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches