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.001362/0.001362, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001312/0.001312, allocations: 193.4 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.629/1.629, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1857/0.1857, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 63.88 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4055, allocations: 58.05 MB / 0.5036 GB, free: 7.426 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.006134/0.4117, allocations: 4.799 MB / 0.5083 GB, free: 4.113 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002028/0.4138, allocations: 1.482 MB / 0.5098 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002562/0.4141, allocations: 15.66 kB / 0.5098 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003735/0.4145, allocations: 114.7 kB / 0.5099 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006621/0.4152, allocations: 264.5 kB / 0.5101 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003984/0.4156, allocations: 138.9 kB / 0.5103 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007652/0.4163, allocations: 0.5865 MB / 0.5108 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005033/0.4169, allocations: 395.5 kB / 0.5112 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003407/0.4172, allocations: 239.2 kB / 0.5114 GB, free: 2.195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003578/0.4176, allocations: 234.2 kB / 0.5117 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.125e-05/0.4176, allocations: 39.25 kB / 0.5117 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.633e-05/0.4177, allocations: 44.06 kB / 0.5117 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001443/0.4179, allocations: 121 kB / 0.5119 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002232/0.4181, allocations: 229.7 kB / 0.5121 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000656/0.4188, allocations: 0.4991 MB / 0.5126 GB, free: 1.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.4188, allocations: 0 / 0.5126 GB, free: 1.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.4188, allocations: 3.938 kB / 0.5126 GB, free: 1.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.4188, allocations: 0 / 0.5126 GB, free: 1.68 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.001242/0.4201, allocations: 0.7203 MB / 0.5133 GB, free: 1.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.4201, allocations: 9.312 kB / 0.5133 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.105e-05/0.4202, allocations: 75.72 kB / 0.5134 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.353e-05/0.4203, allocations: 46.8 kB / 0.5134 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005644/0.4209, allocations: 427.2 kB / 0.5138 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.95e-05/0.4209, allocations: 56.55 kB / 0.5139 GB, free: 0.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.001e-05/0.421, allocations: 47.84 kB / 0.5139 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006532/0.4217, allocations: 428.3 kB / 0.5143 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.4217, allocations: 5.156 kB / 0.5143 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.382e-05/0.4217, allocations: 20.81 kB / 0.5143 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.4218, allocations: 8 kB / 0.5143 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005029/0.4223, allocations: 272.2 kB / 0.5146 GB, free: 296 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002379/0.4247, allocations: 1.83 MB / 0.5164 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003772/0.4251, allocations: 177.6 kB / 0.5166 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.4252, allocations: 79.91 kB / 0.5166 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.041e-05/0.4253, allocations: 6.969 kB / 0.5166 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.4253, allocations: 36.94 kB / 0.5167 GB, free: 14.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.583e-06/0.4253, allocations: 1.656 kB / 0.5167 GB, free: 14.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.00145/0.4268, allocations: 0.7222 MB / 0.5174 GB, free: 14.08 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.316e-05/0.4269, allocations: 107.2 kB / 0.5175 GB, free: 13.96 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004365/0.4273, allocations: 311.8 kB / 0.5178 GB, free: 13.79 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.4273, allocations: 27.11 kB / 0.5178 GB, free: 13.76 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002204/0.4276, allocations: 245.2 kB / 0.518 GB, free: 13.55 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.705e-05/0.4277, allocations: 74.91 kB / 0.5181 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.4278, allocations: 67.42 kB / 0.5182 GB, free: 13.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.428, allocations: 345.1 kB / 0.5185 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.4281, allocations: 71.77 kB / 0.5186 GB, free: 13.1 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003536/0.4285, allocations: 202.8 kB / 0.5188 GB, free: 12.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005492/0.4291, allocations: 289.7 kB / 0.5191 GB, free: 12.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.4291, allocations: 1.062 kB / 0.5191 GB, free: 12.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000715/0.4298, allocations: 333.1 kB / 0.5194 GB, free: 12.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.4298, allocations: 6.031 kB / 0.5194 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.4299, allocations: 5.688 kB / 0.5194 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.4299, allocations: 14.66 kB / 0.5194 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003215/0.4302, allocations: 80.31 kB / 0.5195 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.421e-05/0.4302, allocations: 7.141 kB / 0.5195 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.4304, allocations: 16.3 kB / 0.5195 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.202e-05/0.4305, allocations: 21.8 kB / 0.5195 GB, free: 12.48 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.0002357/0.4307, allocations: 178 kB / 0.5197 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.881e-05/0.4308, allocations: 36.02 kB / 0.5197 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004535/0.4313, allocations: 188.3 kB / 0.5199 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.4313, allocations: 6.406 kB / 0.5199 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/0.4313, allocations: 5.219 kB / 0.5199 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.4313, allocations: 5.672 kB / 0.5199 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001245/0.4326, allocations: 0.6138 MB / 0.5205 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.4326, allocations: 1.281 kB / 0.5205 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002494/0.4328, allocations: 38.36 kB / 0.5206 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.4328, allocations: 2.094 kB / 0.5206 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.4329, allocations: 11.09 kB / 0.5206 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.257e-06/0.4329, allocations: 1.25 kB / 0.5206 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.4329, allocations: 2.969 kB / 0.5206 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007369/0.4336, allocations: 453.1 kB / 0.521 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/0.4338, allocations: 113.1 kB / 0.5211 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.601e-05/0.4338, allocations: 4.609 kB / 0.5211 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.434, allocations: 7.297 kB / 0.5211 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.243e-05/0.4341, allocations: 20.05 kB / 0.5211 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.4341, allocations: 9.672 kB / 0.5211 GB, free: 11.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002702/0.4344, allocations: 221.3 kB / 0.5214 GB, free: 11.17 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4344, allocations: 0 / 0.5214 GB, free: 11.17 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004495/0.4349, allocations: 70.34 kB / 0.5214 GB, free: 11.16 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.001057/0.4359, allocations: 0.9861 MB / 0.5224 GB, free: 10.31 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004823/0.4364, allocations: 199.5 kB / 0.5226 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4364, allocations: 0 / 0.5226 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.4366, allocations: 79.77 kB / 0.5227 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009258/0.4376, allocations: 105.6 kB / 0.5228 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005148/0.4427, allocations: 3.427 MB / 0.5261 GB, free: 7.727 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005679/0.4433, allocations: 0.8116 MB / 0.5269 GB, free: 7.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002379/0.4436, allocations: 49.53 kB / 0.5269 GB, free: 7.008 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002009/0.4438, allocations: 125.9 kB / 0.5271 GB, free: 6.914 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4438, allocations: 0 / 0.5271 GB, free: 6.914 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03469/0.4785, allocations: 7.035 MB / 0.5339 GB, free: 4.879 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.359/8.837, allocations: 8.281 kB / 0.5339 GB, free: 4.875 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