Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.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.Inverters.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_Rectifier",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.001417/0.001417, allocations: 108.3 kB / 17.06 MB, free: 5.957 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.001736/0.001736, allocations: 200 kB / 18.01 MB, free: 5.039 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.404/1.404, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1796/0.1796, allocations: 38.05 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 67.89 kB / 457.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3463, allocations: 58.05 MB / 0.5036 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.Rectifier): time 0.007288/0.3536, allocations: 6.687 MB / 0.5102 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003394/0.357, allocations: 2.117 MB / 0.5122 GB, free: 1.297 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000338/0.3574, allocations: 26.44 kB / 0.5122 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001286/0.3587, allocations: 0.503 MB / 0.5127 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001279/0.36, allocations: 0.568 MB / 0.5133 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008822/0.3609, allocations: 348.9 kB / 0.5136 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001396/0.3623, allocations: 1.299 MB / 0.5149 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001033/0.3633, allocations: 0.7301 MB / 0.5156 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000894/0.3642, allocations: 0.5468 MB / 0.5161 GB, free: 15.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.3653, allocations: 0.7386 MB / 0.5169 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002197/0.3656, allocations: 106.1 kB / 0.517 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001294/0.3669, allocations: 0.5955 MB / 0.5175 GB, free: 15.01 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005659/0.3675, allocations: 481.1 kB / 0.518 GB, free: 14.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006257/0.3681, allocations: 0.5287 MB / 0.5185 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001896/0.37, allocations: 1.543 MB / 0.52 GB, free: 13.97 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.37, allocations: 1.344 kB / 0.52 GB, free: 13.97 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.37, allocations: 3.938 kB / 0.52 GB, free: 13.97 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.073e-05/0.37, allocations: 0 / 0.52 GB, free: 13.97 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.003231/0.3733, allocations: 1.392 MB / 0.5214 GB, free: 13.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.3733, allocations: 12.39 kB / 0.5214 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001981/0.3735, allocations: 144.8 kB / 0.5215 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007351/0.3743, allocations: 144.2 kB / 0.5217 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001524/0.3758, allocations: 0.7021 MB / 0.5224 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002373/0.3761, allocations: 175.2 kB / 0.5225 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002094/0.3763, allocations: 89.36 kB / 0.5226 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002496/0.3788, allocations: 1.409 MB / 0.524 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.929e-05/0.3788, allocations: 5.312 kB / 0.524 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.3789, allocations: 31.19 kB / 0.524 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002368/0.3792, allocations: 88.02 kB / 0.5241 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003127/0.3823, allocations: 1.514 MB / 0.5256 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007822/0.3902, allocations: 4.439 MB / 0.5299 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002421/0.3926, allocations: 1.186 MB / 0.5311 GB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001359/0.394, allocations: 0.7766 MB / 0.5318 GB, free: 7.496 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.659e-05/0.3941, allocations: 12.86 kB / 0.5318 GB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.3941, allocations: 47.27 kB / 0.5319 GB, free: 7.441 MB / 398.1 MB Notification: Performance of pre-optimization done (n=101): time 3.216e-06/0.3941, allocations: 0 / 0.5319 GB, free: 7.441 MB / 398.1 MB Notification: Performance of matching and sorting (n=102): time 0.008016/0.4022, allocations: 3.869 MB / 0.5357 GB, free: 5.254 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.672e-05/0.4023, allocations: 95.08 kB / 0.5358 GB, free: 5.148 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006295/0.4029, allocations: 408.1 kB / 0.5362 GB, free: 4.895 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.799e-05/0.403, allocations: 40.05 kB / 0.5362 GB, free: 4.852 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002678/0.4033, allocations: 343.2 kB / 0.5365 GB, free: 4.547 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003459/0.4036, allocations: 371.8 kB / 0.5369 GB, free: 4.223 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000324/0.404, allocations: 161.9 kB / 0.537 GB, free: 4.129 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.4042, allocations: 377.3 kB / 0.5374 GB, free: 3.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.4054, allocations: 0.5959 MB / 0.538 GB, free: 3.484 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.4068, allocations: 0.7389 MB / 0.5387 GB, free: 3.039 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002246/0.4091, allocations: 1.392 MB / 0.5401 GB, free: 2.266 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.4091, allocations: 1.312 kB / 0.5401 GB, free: 2.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002971/0.412, allocations: 1.599 MB / 0.5416 GB, free: 1.211 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.4121, allocations: 11.94 kB / 0.5416 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.4121, allocations: 4 kB / 0.5416 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001762/0.4123, allocations: 36.84 kB / 0.5417 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002547/0.4148, allocations: 0.4956 MB / 0.5421 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006706/0.4216, allocations: 6.69 MB / 0.5487 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008708/0.4225, allocations: 83.88 kB / 0.5488 GB, free: 9.336 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.369e-05/0.4226, allocations: 40.03 kB / 0.5488 GB, free: 9.297 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (104): * Single equations (assignments): 97 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * 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): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005684/0.4231, allocations: 316.3 kB / 0.5491 GB, free: 8.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001868/0.4233, allocations: 71.52 kB / 0.5492 GB, free: 8.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00282/0.4262, allocations: 1.596 MB / 0.5507 GB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.239e-05/0.4262, allocations: 20 kB / 0.5507 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.4262, allocations: 8 kB / 0.5508 GB, free: 7.258 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.4262, allocations: 3.984 kB / 0.5508 GB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004859/0.4311, allocations: 2.873 MB / 0.5536 GB, free: 4.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.4311, allocations: 3.938 kB / 0.5536 GB, free: 4.281 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002921/0.434, allocations: 0.5268 MB / 0.5541 GB, free: 3.754 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001161/0.4342, allocations: 44.83 kB / 0.5541 GB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.589e-05/0.4343, allocations: 24 kB / 0.5541 GB, free: 3.684 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/0.4355, allocations: 1.638 MB / 0.5557 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.4355, allocations: 3.938 kB / 0.5558 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00396/0.4394, allocations: 2.544 MB / 0.5582 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/0.4396, allocations: 140.6 kB / 0.5584 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.4398, allocations: 19.98 kB / 0.5584 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006146/0.4404, allocations: 75.97 kB / 0.5585 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.4406, allocations: 76.48 kB / 0.5585 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.44e-05/0.4407, allocations: 28 kB / 0.5586 GB, free: 14.94 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003113/0.441, allocations: 283.1 kB / 0.5588 GB, free: 14.67 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.441, allocations: 0 / 0.5588 GB, free: 14.67 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009982/0.442, allocations: 239.9 kB / 0.5591 GB, free: 14.43 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * 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 (86): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004536/0.4465, allocations: 3.148 MB / 0.5621 GB, free: 11.22 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004425/0.451, allocations: 1.833 MB / 0.5639 GB, free: 9.367 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.451, allocations: 4.188 kB / 0.5639 GB, free: 9.363 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002975/0.454, allocations: 1.197 MB / 0.5651 GB, free: 8.152 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009206/0.4549, allocations: 157.5 kB / 0.5652 GB, free: 7.996 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01415/0.4691, allocations: 9.142 MB / 0.5742 GB, free: 14.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006981/0.4698, allocations: 1.072 MB / 0.5752 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007384/0.4706, allocations: 265.6 kB / 0.5755 GB, free: 13.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004587/0.471, allocations: 291.3 kB / 0.5758 GB, free: 12.95 MB / 446.1 MB Notification: Performance of SimCode: time 9.21e-07/0.471, allocations: 0 / 0.5758 GB, free: 12.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04789/0.5189, allocations: 17.98 MB / 0.5933 GB, free: 11.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.43, allocations: 15.72 kB / 0.5933 GB, free: 11.19 MB / 462.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_Rectifier.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.Rectifier.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches