Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",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.001789/0.001789, allocations: 105.7 kB / 17.06 MB, free: 6.016 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.002216/0.002216, allocations: 189.4 kB / 18 MB, free: 5.102 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.465/1.465, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1828/0.1828, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 55.91 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3913/0.3932, allocations: 58.06 MB / 0.5036 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006411/0.3997, allocations: 5.262 MB / 0.5088 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.4023, allocations: 1.567 MB / 0.5103 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004902/0.4028, allocations: 19.75 kB / 0.5103 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004507/0.4033, allocations: 120.4 kB / 0.5104 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008625/0.4042, allocations: 315.6 kB / 0.5107 GB, free: 2.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004279/0.4047, allocations: 153.8 kB / 0.5109 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009306/0.4056, allocations: 0.6998 MB / 0.5116 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006208/0.4062, allocations: 455.7 kB / 0.512 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004666/0.4067, allocations: 279 kB / 0.5123 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004745/0.4072, allocations: 289.9 kB / 0.5125 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.256e-05/0.4073, allocations: 45.56 kB / 0.5126 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.4074, allocations: 46.91 kB / 0.5126 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001823/0.4076, allocations: 159.6 kB / 0.5128 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002556/0.4078, allocations: 263.4 kB / 0.513 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008186/0.4087, allocations: 0.5979 MB / 0.5136 GB, free: 1.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.4087, allocations: 1.25 kB / 0.5136 GB, free: 1.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4087, allocations: 0 / 0.5136 GB, free: 1.152 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.4087, allocations: 0 / 0.5136 GB, free: 1.152 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001374/0.4101, allocations: 0.8001 MB / 0.5144 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.4101, allocations: 13.27 kB / 0.5144 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.776e-05/0.4102, allocations: 83.62 kB / 0.5145 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.4103, allocations: 60.33 kB / 0.5145 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007361/0.4111, allocations: 463.8 kB / 0.515 GB, free: 116 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.59e-05/0.4112, allocations: 67.7 kB / 0.515 GB, free: 64 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.191e-05/0.4113, allocations: 48.17 kB / 0.5151 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009131/0.4122, allocations: 0.4944 MB / 0.5156 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.4122, allocations: 5.125 kB / 0.5156 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.468e-05/0.4123, allocations: 17 kB / 0.5156 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.4123, allocations: 13.92 kB / 0.5156 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006921/0.413, allocations: 342.4 kB / 0.5159 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002783/0.4158, allocations: 1.968 MB / 0.5179 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005458/0.4163, allocations: 226 kB / 0.5181 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002461/0.4166, allocations: 93.91 kB / 0.5182 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.015e-05/0.4166, allocations: 5.844 kB / 0.5182 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.4167, allocations: 37.86 kB / 0.5182 GB, free: 13.89 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.833e-06/0.4167, allocations: 0 / 0.5182 GB, free: 13.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001978/0.4187, allocations: 0.8538 MB / 0.519 GB, free: 13.3 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.608e-05/0.4188, allocations: 109.6 kB / 0.5191 GB, free: 13.17 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004437/0.4192, allocations: 332.4 kB / 0.5195 GB, free: 12.99 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.4193, allocations: 35.92 kB / 0.5195 GB, free: 12.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00022/0.4195, allocations: 269 kB / 0.5198 GB, free: 12.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.828e-05/0.4196, allocations: 88.91 kB / 0.5198 GB, free: 12.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.4197, allocations: 67.03 kB / 0.5199 GB, free: 12.62 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.4199, allocations: 350.3 kB / 0.5202 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002272/0.4201, allocations: 80.77 kB / 0.5203 GB, free: 12.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003205/0.4205, allocations: 211.6 kB / 0.5205 GB, free: 12.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/0.4218, allocations: 0.5613 MB / 0.5211 GB, free: 11.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4218, allocations: 1.219 kB / 0.5211 GB, free: 11.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009548/0.4228, allocations: 416.8 kB / 0.5215 GB, free: 11.49 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.4228, allocations: 7.312 kB / 0.5215 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.4229, allocations: 4.188 kB / 0.5215 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003399/0.4232, allocations: 78.11 kB / 0.5215 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002675/0.4235, allocations: 70.53 kB / 0.5216 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002315/0.4258, allocations: 1.927 MB / 0.5235 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002899/0.4261, allocations: 14.75 kB / 0.5235 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.875e-05/0.4262, allocations: 20.81 kB / 0.5235 GB, free: 9.699 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003279/0.4265, allocations: 195.8 kB / 0.5237 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.914e-05/0.4266, allocations: 41.41 kB / 0.5238 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.881e-05/0.4267, allocations: 37.67 kB / 0.5238 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.4267, allocations: 2.938 kB / 0.5238 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.4267, allocations: 2.297 kB / 0.5238 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.4267, allocations: 1.859 kB / 0.5238 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.4282, allocations: 0.7754 MB / 0.5246 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.4282, allocations: 1.125 kB / 0.5246 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002559/0.4285, allocations: 45.23 kB / 0.5246 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001005/0.4286, allocations: 21.75 kB / 0.5246 GB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.4286, allocations: 11.73 kB / 0.5246 GB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/0.4298, allocations: 1.386 MB / 0.526 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4298, allocations: 1.219 kB / 0.526 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008539/0.4307, allocations: 0.5056 MB / 0.5265 GB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/0.4308, allocations: 117.5 kB / 0.5266 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.486e-05/0.4309, allocations: 7.266 kB / 0.5266 GB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.4311, allocations: 10.19 kB / 0.5266 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.761e-05/0.4312, allocations: 14.53 kB / 0.5266 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-05/0.4312, allocations: 14.2 kB / 0.5266 GB, free: 7.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002985/0.4315, allocations: 228.3 kB / 0.5269 GB, free: 6.898 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4315, allocations: 4 kB / 0.5269 GB, free: 6.895 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005917/0.4321, allocations: 90.83 kB / 0.5269 GB, free: 6.883 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * 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: 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001327/0.4334, allocations: 1.047 MB / 0.528 GB, free: 6.004 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009848/0.4344, allocations: 374.4 kB / 0.5283 GB, free: 5.797 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4345, allocations: 1.094 kB / 0.5283 GB, free: 5.797 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004248/0.4349, allocations: 212.7 kB / 0.5285 GB, free: 5.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007861/0.4357, allocations: 114.5 kB / 0.5286 GB, free: 5.617 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006452/0.4422, allocations: 3.705 MB / 0.5323 GB, free: 3.062 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006049/0.4428, allocations: 0.8395 MB / 0.5331 GB, free: 2.352 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002765/0.4431, allocations: 51.11 kB / 0.5331 GB, free: 2.336 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002283/0.4433, allocations: 140.8 kB / 0.5333 GB, free: 2.23 MB / 398.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4434, allocations: 0 / 0.5333 GB, free: 2.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04204/0.4854, allocations: 8.516 MB / 0.5416 GB, free: 14.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.89, allocations: 7.656 kB / 0.5416 GB, free: 14.8 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches