Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.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.Elementary.Load,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Load",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Load,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Load",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.001542/0.001542, allocations: 104.8 kB / 17.06 MB, free: 5.785 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.001894/0.001894, allocations: 195 kB / 18 MB, free: 4.945 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.367/1.367, 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.2033/0.2033, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 67.91 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.316, allocations: 58.05 MB / 0.5036 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Load): time 0.007043/0.3231, allocations: 4.498 MB / 0.508 GB, free: 4.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002799/0.3259, allocations: 1.512 MB / 0.5095 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002423/0.3262, allocations: 20.5 kB / 0.5095 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000911/0.3271, allocations: 298.3 kB / 0.5098 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00063/0.3277, allocations: 258.4 kB / 0.51 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007643/0.3285, allocations: 266.2 kB / 0.5103 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008305/0.3294, allocations: 0.6373 MB / 0.5109 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005594/0.3299, allocations: 291.5 kB / 0.5112 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005032/0.3304, allocations: 285 kB / 0.5115 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007921/0.3312, allocations: 391.1 kB / 0.5118 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001055/0.3314, allocations: 41.38 kB / 0.5119 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003942/0.3318, allocations: 149.4 kB / 0.512 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003057/0.3321, allocations: 244.3 kB / 0.5123 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003287/0.3324, allocations: 280.5 kB / 0.5125 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.3335, allocations: 0.6573 MB / 0.5132 GB, free: 1.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3335, allocations: 0 / 0.5132 GB, free: 1.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3335, allocations: 0 / 0.5132 GB, free: 1.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.3335, allocations: 0 / 0.5132 GB, free: 1.684 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002002/0.3355, allocations: 0.8875 MB / 0.514 GB, free: 1.066 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.334e-05/0.3356, allocations: 10.08 kB / 0.514 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001122/0.3357, allocations: 94.64 kB / 0.5141 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006646/0.3364, allocations: 92.05 kB / 0.5142 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.3375, allocations: 0.4964 MB / 0.5147 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.985e-05/0.3376, allocations: 33.84 kB / 0.5147 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.3378, allocations: 56.88 kB / 0.5148 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.3388, allocations: 0.6815 MB / 0.5155 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/0.3388, allocations: 6.891 kB / 0.5155 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.303e-05/0.3389, allocations: 20.72 kB / 0.5155 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00015/0.3391, allocations: 37.27 kB / 0.5155 GB, free: 220 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009639/0.34, allocations: 0.526 MB / 0.516 GB, free: 52 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004523/0.3446, allocations: 3.1 MB / 0.5191 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006295/0.3452, allocations: 326.7 kB / 0.5194 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.3455, allocations: 177.3 kB / 0.5195 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.395e-05/0.3456, allocations: 9.594 kB / 0.5195 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.3456, allocations: 49.67 kB / 0.5196 GB, free: 13.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.545e-06/0.3456, allocations: 0 / 0.5196 GB, free: 13.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002433/0.3481, allocations: 1.218 MB / 0.5208 GB, free: 12.76 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.584e-05/0.3481, allocations: 83.84 kB / 0.5209 GB, free: 12.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005073/0.3487, allocations: 396.6 kB / 0.5212 GB, free: 12.47 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.586e-05/0.3487, allocations: 31.23 kB / 0.5213 GB, free: 12.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002253/0.3489, allocations: 311.9 kB / 0.5216 GB, free: 12.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001268/0.3491, allocations: 124.7 kB / 0.5217 GB, free: 12.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/0.3493, allocations: 103.5 kB / 0.5218 GB, free: 12.03 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.3494, allocations: 354.8 kB / 0.5221 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003325/0.3498, allocations: 200.3 kB / 0.5223 GB, free: 11.63 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004625/0.3502, allocations: 384.8 kB / 0.5227 GB, free: 11.33 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008006/0.351, allocations: 0.5942 MB / 0.5233 GB, free: 10.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.3511, allocations: 2.75 kB / 0.5233 GB, free: 10.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.00211/0.3532, allocations: 0.8297 MB / 0.5241 GB, free: 10.63 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.3532, allocations: 7.906 kB / 0.5241 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/0.3532, allocations: 6.531 kB / 0.5241 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001257/0.3545, allocations: 266.2 kB / 0.5243 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006444/0.3552, allocations: 137.3 kB / 0.5245 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005809/0.361, allocations: 4.046 MB / 0.5284 GB, free: 7.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005303/0.3615, allocations: 31.19 kB / 0.5285 GB, free: 7.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.598e-05/0.3616, allocations: 26.06 kB / 0.5285 GB, free: 7.305 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004457/0.362, allocations: 222.6 kB / 0.5287 GB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-05/0.3621, allocations: 42.2 kB / 0.5287 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008589/0.363, allocations: 484.1 kB / 0.5292 GB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.363, allocations: 7.75 kB / 0.5292 GB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.363, allocations: 1 kB / 0.5292 GB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.3631, allocations: 3.812 kB / 0.5292 GB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001703/0.3648, allocations: 1.02 MB / 0.5302 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.206e-06/0.3648, allocations: 3.938 kB / 0.5302 GB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004499/0.3653, allocations: 86.64 kB / 0.5303 GB, free: 6.348 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/0.3653, allocations: 6.594 kB / 0.5303 GB, free: 6.344 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.64e-05/0.3653, allocations: 12.28 kB / 0.5303 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.155e-06/0.3653, allocations: 5.297 kB / 0.5303 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.3653, allocations: 3.938 kB / 0.5303 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.3665, allocations: 0.7444 MB / 0.531 GB, free: 5.953 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001527/0.3667, allocations: 120.4 kB / 0.5312 GB, free: 5.832 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.9e-05/0.3667, allocations: 9.359 kB / 0.5312 GB, free: 5.828 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002592/0.367, allocations: 20.86 kB / 0.5312 GB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.387e-05/0.3671, allocations: 23.31 kB / 0.5312 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/0.3671, allocations: 12.8 kB / 0.5312 GB, free: 5.812 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004125/0.3675, allocations: 273.9 kB / 0.5315 GB, free: 5.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3675, allocations: 0 / 0.5315 GB, free: 5.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007395/0.3683, allocations: 117.7 kB / 0.5316 GB, free: 5.668 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (load.psi[1],load.psi[2],load.psi[3],load.Z[1],load.Z[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 (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00162/0.3699, allocations: 1.297 MB / 0.5329 GB, free: 4.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001886/0.3718, allocations: 0.8033 MB / 0.5336 GB, free: 4.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.3718, allocations: 0 / 0.5336 GB, free: 4.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003808/0.3722, allocations: 198 kB / 0.5338 GB, free: 4.254 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007213/0.373, allocations: 81.17 kB / 0.5339 GB, free: 4.207 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01547/0.3884, allocations: 5.341 MB / 0.5391 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008497/0.3893, allocations: 0.8969 MB / 0.54 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005576/0.3899, allocations: 133.9 kB / 0.5401 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000279/0.3902, allocations: 173 kB / 0.5403 GB, free: 15.49 MB / 414.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3902, allocations: 0 / 0.5403 GB, free: 15.49 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03807/0.4283, allocations: 10.65 MB / 0.5507 GB, free: 7.262 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/12.92, allocations: 4 kB / 0.5507 GB, free: 7.258 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_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_Elementary_Load.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Load.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches