Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.001186/0.001186, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001215/0.001215, allocations: 195 kB / 18 MB, free: 5.074 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.344/1.344, 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.1795/0.1795, allocations: 38.06 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 60.12 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3895/0.3907, allocations: 58.06 MB / 0.5036 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.006649/0.3974, allocations: 4.798 MB / 0.5083 GB, free: 4.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002507/0.3999, allocations: 1.478 MB / 0.5097 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002797/0.4002, allocations: 14.44 kB / 0.5098 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004074/0.4006, allocations: 115.9 kB / 0.5099 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007214/0.4014, allocations: 273.6 kB / 0.5101 GB, free: 2.867 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004069/0.4018, allocations: 138.8 kB / 0.5103 GB, free: 2.789 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008558/0.4027, allocations: 0.5876 MB / 0.5108 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005447/0.4033, allocations: 394.6 kB / 0.5112 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003354/0.4036, allocations: 247.5 kB / 0.5115 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003529/0.404, allocations: 235.2 kB / 0.5117 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.336e-05/0.4041, allocations: 38.81 kB / 0.5117 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.598e-05/0.4042, allocations: 40.03 kB / 0.5118 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001456/0.4043, allocations: 124.6 kB / 0.5119 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002311/0.4046, allocations: 223.3 kB / 0.5121 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007109/0.4053, allocations: 0.506 MB / 0.5126 GB, free: 1.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.4053, allocations: 1 kB / 0.5126 GB, free: 1.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4053, allocations: 4 kB / 0.5126 GB, free: 1.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.4053, allocations: 0 / 0.5126 GB, free: 1.719 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001304/0.4066, allocations: 0.7192 MB / 0.5133 GB, free: 1.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.4067, allocations: 10.52 kB / 0.5133 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.046e-05/0.4068, allocations: 74.8 kB / 0.5134 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.122e-05/0.4069, allocations: 55.56 kB / 0.5134 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006724/0.4075, allocations: 422.2 kB / 0.5138 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.474e-05/0.4076, allocations: 56.62 kB / 0.5139 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.446e-05/0.4077, allocations: 40.95 kB / 0.5139 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006837/0.4084, allocations: 431.6 kB / 0.5143 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.4084, allocations: 4.719 kB / 0.5143 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.4085, allocations: 12.97 kB / 0.5143 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.4085, allocations: 9.156 kB / 0.5144 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005307/0.409, allocations: 274.8 kB / 0.5146 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002337/0.4114, allocations: 1.834 MB / 0.5164 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003733/0.4118, allocations: 181.3 kB / 0.5166 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.4119, allocations: 77.02 kB / 0.5167 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.412, allocations: 2.531 kB / 0.5167 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.412, allocations: 37.8 kB / 0.5167 GB, free: 14.65 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.483e-06/0.412, allocations: 0 / 0.5167 GB, free: 14.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001426/0.4135, allocations: 0.7199 MB / 0.5174 GB, free: 14.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.589e-05/0.4135, allocations: 105.2 kB / 0.5175 GB, free: 14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004766/0.414, allocations: 312.4 kB / 0.5178 GB, free: 13.83 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/0.414, allocations: 26.77 kB / 0.5178 GB, free: 13.8 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.4142, allocations: 254.9 kB / 0.5181 GB, free: 13.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.708e-05/0.4143, allocations: 70.03 kB / 0.5181 GB, free: 13.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/0.4145, allocations: 68.03 kB / 0.5182 GB, free: 13.49 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.4146, allocations: 340.3 kB / 0.5185 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.4148, allocations: 72.33 kB / 0.5186 GB, free: 13.14 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003327/0.4152, allocations: 205.3 kB / 0.5188 GB, free: 12.95 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005365/0.4157, allocations: 297.8 kB / 0.5191 GB, free: 12.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.4157, allocations: 1.25 kB / 0.5191 GB, free: 12.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006835/0.4164, allocations: 333.4 kB / 0.5194 GB, free: 12.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.4164, allocations: 6.25 kB / 0.5194 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.4165, allocations: 5.25 kB / 0.5194 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/0.4165, allocations: 6.781 kB / 0.5194 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.4168, allocations: 75.8 kB / 0.5195 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.662e-05/0.4168, allocations: 7.609 kB / 0.5195 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.417, allocations: 20.78 kB / 0.5195 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.215e-05/0.417, allocations: 12.97 kB / 0.5195 GB, free: 12.53 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002297/0.4173, allocations: 182.7 kB / 0.5197 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.587e-05/0.4174, allocations: 35.2 kB / 0.5197 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004633/0.4178, allocations: 198 kB / 0.5199 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.4179, allocations: 3.094 kB / 0.5199 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.4179, allocations: 1.531 kB / 0.5199 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.4179, allocations: 0.8438 kB / 0.5199 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.419, allocations: 0.6167 MB / 0.5205 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.419, allocations: 1.469 kB / 0.5205 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002408/0.4192, allocations: 45.61 kB / 0.5206 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.4192, allocations: 2.766 kB / 0.5206 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/0.4193, allocations: 3.156 kB / 0.5206 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.4193, allocations: 1.531 kB / 0.5206 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4193, allocations: 1.5 kB / 0.5206 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006402/0.4199, allocations: 461.2 kB / 0.521 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.719e-05/0.42, allocations: 106.6 kB / 0.5211 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.432e-05/0.4201, allocations: 6.844 kB / 0.5211 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.4203, allocations: 8.703 kB / 0.5211 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.457e-05/0.4203, allocations: 14.97 kB / 0.5211 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.4203, allocations: 13.23 kB / 0.5212 GB, free: 11.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002333/0.4206, allocations: 222.5 kB / 0.5214 GB, free: 11.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4206, allocations: 0 / 0.5214 GB, free: 11.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004149/0.421, allocations: 66.66 kB / 0.5214 GB, free: 11.21 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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 (20): * Single equations (assignments): 19 * 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.0008738/0.4219, allocations: 0.9895 MB / 0.5224 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004848/0.4224, allocations: 199.4 kB / 0.5226 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.4224, allocations: 320 / 0.5226 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001909/0.4226, allocations: 86.06 kB / 0.5227 GB, free: 10.26 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007058/0.4233, allocations: 102 kB / 0.5228 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004606/0.4279, allocations: 3.421 MB / 0.5261 GB, free: 7.777 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004397/0.4284, allocations: 0.8093 MB / 0.5269 GB, free: 7.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002121/0.4286, allocations: 54.61 kB / 0.5269 GB, free: 7.055 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000183/0.4288, allocations: 119.6 kB / 0.5271 GB, free: 6.965 MB / 398.1 MB Notification: Performance of SimCode: time 2.01e-07/0.4288, allocations: 0 / 0.5271 GB, free: 6.965 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0266/0.4554, allocations: 7.04 MB / 0.5339 GB, free: 4.867 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.123/8.578, allocations: 13.34 kB / 0.534 GB, free: 4.855 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches