Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",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.001474/0.001474, allocations: 104 kB / 16.92 MB, free: 5.793 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.001234/0.001234, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.405/1.405, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1829/0.1829, allocations: 38.04 MB / 329.7 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001336, allocations: 72.22 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09777/0.09912, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.007919/0.1071, allocations: 5.705 MB / 462.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006265/0.1134, allocations: 4.44 MB / 467.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004918/0.1139, allocations: 23.88 kB / 467.1 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009228/0.1232, allocations: 4.904 MB / 472 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001121/0.1243, allocations: 434 kB / 472.5 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007269/0.1251, allocations: 271.5 kB / 472.7 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00231/0.1274, allocations: 1.735 MB / 474.5 MB, free: 6.398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001007/0.1284, allocations: 0.7157 MB / 475.2 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007637/0.1292, allocations: 478.4 kB / 475.6 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007138/0.1299, allocations: 0.4905 MB / 476.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001581/0.1301, allocations: 75.94 kB / 476.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003675/0.1304, allocations: 139.9 kB / 476.4 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003566/0.1308, allocations: 327.2 kB / 476.7 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005282/0.1313, allocations: 402.1 kB / 477.1 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001267/0.1326, allocations: 1.016 MB / 478.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.1326, allocations: 0 / 478.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1327, allocations: 0 / 478.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.299e-05/0.1327, allocations: 4 kB / 478.1 MB, free: 2.773 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002305/0.135, allocations: 1.032 MB / 479.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.1351, allocations: 15.89 kB / 479.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001377/0.1352, allocations: 106.7 kB / 479.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004571/0.1357, allocations: 104 kB / 479.3 MB, free: 1.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.1368, allocations: 0.5996 MB / 479.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.096e-05/0.1369, allocations: 83 kB / 480 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.1371, allocations: 63.98 kB / 480.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.1382, allocations: 0.7982 MB / 480.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.867e-05/0.1383, allocations: 11.89 kB / 480.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.937e-05/0.1383, allocations: 24 kB / 480.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001276/0.1385, allocations: 53.28 kB / 481 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000958/0.1394, allocations: 0.5866 MB / 481.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00391/0.1434, allocations: 2.943 MB / 484.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007683/0.1442, allocations: 426.1 kB / 484.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003169/0.1445, allocations: 226.7 kB / 485.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.1445, allocations: 4 kB / 485.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004467/0.145, allocations: 342.4 kB / 485.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 2.304e-06/0.145, allocations: 4 kB / 485.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003022/0.148, allocations: 2.047 MB / 487.5 MB, free: 8.871 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.665e-05/0.1481, allocations: 140.4 kB / 487.7 MB, free: 8.703 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000475/0.1486, allocations: 449.8 kB / 488.1 MB, free: 8.254 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.959e-05/0.1486, allocations: 37.64 kB / 488.1 MB, free: 8.211 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.1489, allocations: 327.8 kB / 488.5 MB, free: 7.887 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001376/0.149, allocations: 161.7 kB / 488.6 MB, free: 7.727 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.1492, allocations: 118.2 kB / 488.7 MB, free: 7.602 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1493, allocations: 358.8 kB / 489.1 MB, free: 7.242 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003488/0.1497, allocations: 237.2 kB / 489.3 MB, free: 7.012 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004379/0.1501, allocations: 393.7 kB / 489.7 MB, free: 6.559 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002655/0.1528, allocations: 1.324 MB / 491 MB, free: 5.137 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1528, allocations: 0 / 491 MB, free: 5.137 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001717/0.1545, allocations: 0.9785 MB / 492 MB, free: 4.137 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.063e-05/0.1546, allocations: 33.7 kB / 492 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.1546, allocations: 4 kB / 492 MB, free: 4.094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000921/0.1555, allocations: 316.1 kB / 492.3 MB, free: 3.781 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.1566, allocations: 175.7 kB / 492.5 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006559/0.1631, allocations: 5.293 MB / 497.8 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000401/0.1636, allocations: 19.98 kB / 497.8 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.658e-05/0.1636, allocations: 28 kB / 497.9 MB, free: 14 MB / 382.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.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0004366/0.1641, allocations: 311.2 kB / 498.2 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.1642, allocations: 51.34 kB / 498.2 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001171/0.1654, allocations: 0.8093 MB / 499 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.1654, allocations: 4 kB / 499 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1654, allocations: 4 kB / 499 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1654, allocations: 0 / 499 MB, free: 12.75 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00233/0.1677, allocations: 1.656 MB / 0.4889 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.1678, allocations: 8 kB / 0.489 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/0.1691, allocations: 191.9 kB / 0.4891 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002342/0.1693, allocations: 86.41 kB / 0.4892 GB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-05/0.1694, allocations: 15.98 kB / 0.4892 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002872/0.1723, allocations: 4.253 MB / 0.4934 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.1723, allocations: 4.031 kB / 0.4934 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001556/0.1739, allocations: 1.13 MB / 0.4945 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002825/0.1742, allocations: 172.3 kB / 0.4947 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001147/0.1743, allocations: 23.98 kB / 0.4947 GB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003096/0.1746, allocations: 19.98 kB / 0.4947 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.1747, allocations: 31.95 kB / 0.4947 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.58e-05/0.1748, allocations: 16 kB / 0.4947 GB, free: 4.492 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004122/0.1752, allocations: 315.1 kB / 0.495 GB, free: 4.184 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1752, allocations: 0 / 0.495 GB, free: 4.184 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008518/0.1761, allocations: 164 kB / 0.4952 GB, free: 4.023 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (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.001764/0.1778, allocations: 1.671 MB / 0.4968 GB, free: 2.258 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001957/0.1798, allocations: 1.05 MB / 0.4979 GB, free: 1.168 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.1798, allocations: 0.8125 kB / 0.4979 GB, free: 1.168 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008036/0.1806, allocations: 0.6439 MB / 0.4985 GB, free: 484 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007282/0.1814, allocations: 132 kB / 0.4986 GB, free: 360 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008879/0.1903, allocations: 6.233 MB / 0.5047 GB, free: 9.867 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006081/0.1909, allocations: 0.9799 MB / 0.5057 GB, free: 8.859 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004093/0.1913, allocations: 124.7 kB / 0.5058 GB, free: 8.734 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003064/0.1916, allocations: 215.4 kB / 0.506 GB, free: 8.527 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1916, allocations: 0 / 0.506 GB, free: 8.527 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2499/0.4415, allocations: 13.94 MB / 0.5196 GB, free: 73.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.83, allocations: 4.672 kB / 0.5196 GB, free: 73.09 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_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_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches