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.001621/0.001621, allocations: 104.7 kB / 16.92 MB, free: 6.145 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.002303/0.002303, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.516/1.516, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1948/0.1948, allocations: 38.04 MB / 329.7 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002283/0.002283, allocations: 68.88 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1531, allocations: 58.06 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007365/0.1605, allocations: 5.248 MB / 462.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002804/0.1634, allocations: 1.581 MB / 463.8 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00056/0.164, allocations: 15.94 kB / 463.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004863/0.1645, allocations: 123 kB / 463.9 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009856/0.1655, allocations: 322.1 kB / 464.3 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004749/0.166, allocations: 151.8 kB / 464.4 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001144/0.1671, allocations: 0.6927 MB / 465.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007042/0.1679, allocations: 451.7 kB / 465.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005594/0.1684, allocations: 286.9 kB / 465.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005607/0.169, allocations: 290.8 kB / 466.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001071/0.1691, allocations: 52 kB / 466.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.1693, allocations: 44 kB / 466.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001882/0.1695, allocations: 151.6 kB / 466.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004111/0.1699, allocations: 270.7 kB / 466.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007309/0.1706, allocations: 0.584 MB / 467.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1707, allocations: 0 / 467.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1707, allocations: 0 / 467.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.991e-05/0.1707, allocations: 0 / 467.2 MB, free: 13.71 MB / 350.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.001583/0.1723, allocations: 0.7815 MB / 468 MB, free: 12.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.1724, allocations: 11.89 kB / 468 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000119/0.1725, allocations: 82.7 kB / 468.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/0.1726, allocations: 56.28 kB / 468.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009354/0.1736, allocations: 443.7 kB / 468.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.1738, allocations: 66.64 kB / 468.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.994e-05/0.1739, allocations: 43.91 kB / 468.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.175, allocations: 0.497 MB / 469.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.319e-05/0.175, allocations: 4 kB / 469.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.831e-05/0.1751, allocations: 16 kB / 469.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.664e-05/0.1751, allocations: 12 kB / 469.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007975/0.1759, allocations: 347.6 kB / 469.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00272/0.1786, allocations: 1.968 MB / 471.5 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004246/0.1791, allocations: 223.5 kB / 471.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.1793, allocations: 102.6 kB / 471.8 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.1793, allocations: 4 kB / 471.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.1794, allocations: 38.56 kB / 471.9 MB, free: 8.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 2.475e-06/0.1794, allocations: 0 / 471.9 MB, free: 8.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001842/0.1812, allocations: 0.8384 MB / 472.7 MB, free: 7.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.381e-05/0.1813, allocations: 110.8 kB / 472.8 MB, free: 7.703 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000385/0.1817, allocations: 337.5 kB / 473.1 MB, free: 7.367 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.1817, allocations: 29.7 kB / 473.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002034/0.1819, allocations: 275.6 kB / 473.4 MB, free: 7.059 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.45e-05/0.182, allocations: 70.92 kB / 473.5 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.1822, allocations: 69.64 kB / 473.6 MB, free: 6.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.1823, allocations: 338.8 kB / 473.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002057/0.1825, allocations: 91.94 kB / 474 MB, free: 6.484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000276/0.1828, allocations: 213.1 kB / 474.2 MB, free: 6.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.1841, allocations: 0.5609 MB / 474.8 MB, free: 5.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1841, allocations: 0 / 474.8 MB, free: 5.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008707/0.185, allocations: 424.7 kB / 475.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.185, allocations: 8 kB / 475.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.185, allocations: 4 kB / 475.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003386/0.1854, allocations: 84.97 kB / 475.3 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002408/0.1856, allocations: 59.91 kB / 475.3 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002244/0.1879, allocations: 1.934 MB / 477.3 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002277/0.1881, allocations: 24.05 kB / 477.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.614e-05/0.1882, allocations: 16 kB / 477.3 MB, free: 2.887 MB / 350.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.0002578/0.1884, allocations: 189.7 kB / 477.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.732e-05/0.1885, allocations: 39.56 kB / 477.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.088e-05/0.1886, allocations: 39.3 kB / 477.6 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1886, allocations: 4 kB / 477.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1886, allocations: 0 / 477.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1886, allocations: 8 kB / 477.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001242/0.1899, allocations: 0.7765 MB / 478.3 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.1899, allocations: 4 kB / 478.4 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002402/0.1901, allocations: 44 kB / 478.4 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.058e-05/0.1902, allocations: 24.84 kB / 478.4 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.038e-05/0.1903, allocations: 7.938 kB / 478.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009522/0.1912, allocations: 1.383 MB / 479.8 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1912, allocations: 0 / 479.8 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007762/0.192, allocations: 0.4978 MB / 480.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.1921, allocations: 124.7 kB / 480.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4e-05/0.1922, allocations: 4 kB / 480.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001967/0.1924, allocations: 19.98 kB / 480.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.098e-05/0.1925, allocations: 19.92 kB / 480.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.1925, allocations: 4 kB / 480.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002373/0.1927, allocations: 235.2 kB / 480.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1927, allocations: 0 / 480.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004857/0.1932, allocations: 87.94 kB / 480.8 MB, free: 15.12 MB / 366.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.0009897/0.1942, allocations: 1.037 MB / 481.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007686/0.195, allocations: 389.2 kB / 482.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.195, allocations: 1.188 kB / 482.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003408/0.1954, allocations: 218.6 kB / 482.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006846/0.1961, allocations: 111.6 kB / 482.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005123/0.2012, allocations: 3.691 MB / 486.2 MB, free: 9.414 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00049/0.2017, allocations: 0.8387 MB / 487.1 MB, free: 8.551 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002117/0.2019, allocations: 55.23 kB / 487.1 MB, free: 8.496 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001668/0.2021, allocations: 139.4 kB / 487.3 MB, free: 8.359 MB / 366.1 MB Notification: Performance of SimCode: time 1.864e-06/0.2021, allocations: 3.938 kB / 487.3 MB, free: 8.355 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03212/0.2342, allocations: 8.349 MB / 495.6 MB, free: 188 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.71, allocations: 3.938 kB / 495.6 MB, free: 184 kB / 366.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