Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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.ASMcharacteristic,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",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.001613/0.001613, 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.002412/0.002413, 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.394/1.394, 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.1846/0.1846, allocations: 38.04 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 57.95 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1076, allocations: 58.06 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.007588/0.1152, allocations: 5.221 MB / 462.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00595/0.1212, allocations: 3.973 MB / 466.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004196/0.1216, allocations: 15.88 kB / 466.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008999/0.1307, allocations: 4.791 MB / 471 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009061/0.1316, allocations: 322.4 kB / 471.3 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006229/0.1322, allocations: 219.7 kB / 471.5 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002264/0.1345, allocations: 1.555 MB / 473.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008046/0.1353, allocations: 0.5886 MB / 473.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005845/0.1359, allocations: 358.7 kB / 474 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007094/0.1366, allocations: 406.5 kB / 474.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.1368, allocations: 56 kB / 474.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002424/0.137, allocations: 71.92 kB / 474.5 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002623/0.1373, allocations: 259.3 kB / 474.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003712/0.1377, allocations: 322.5 kB / 475.1 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007642/0.1385, allocations: 0.7983 MB / 475.9 MB, free: 4.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1385, allocations: 0 / 475.9 MB, free: 4.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1385, allocations: 0 / 475.9 MB, free: 4.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.474e-05/0.1385, allocations: 0 / 475.9 MB, free: 4.988 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.00165/0.1402, allocations: 0.8706 MB / 476.8 MB, free: 4.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.1402, allocations: 15.89 kB / 476.8 MB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/0.1403, allocations: 86.7 kB / 476.9 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002774/0.1406, allocations: 72.03 kB / 476.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008983/0.1415, allocations: 0.5488 MB / 477.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.1416, allocations: 32.98 kB / 477.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.507e-05/0.1417, allocations: 48 kB / 477.6 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008605/0.1425, allocations: 0.6335 MB / 478.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.1426, allocations: 0 / 478.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.692e-05/0.1426, allocations: 19.98 kB / 478.2 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001213/0.1427, allocations: 52.97 kB / 478.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006909/0.1434, allocations: 459.6 kB / 478.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002792/0.1462, allocations: 2.522 MB / 481.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004082/0.1467, allocations: 285.1 kB / 481.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002039/0.1469, allocations: 150.2 kB / 481.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.1469, allocations: 0.5 kB / 481.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.1469, allocations: 46.44 kB / 481.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.633e-06/0.1469, allocations: 0 / 481.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002727/0.1497, allocations: 1.542 MB / 483.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.1497, allocations: 81.11 kB / 483.3 MB, free: 13.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004002/0.1501, allocations: 409.9 kB / 483.7 MB, free: 12.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.1502, allocations: 33.7 kB / 483.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001727/0.1504, allocations: 299.5 kB / 484 MB, free: 12.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.906e-05/0.1505, allocations: 114.4 kB / 484.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.1506, allocations: 78.05 kB / 484.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.1507, allocations: 358.7 kB / 484.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.1509, allocations: 132.8 kB / 484.7 MB, free: 11.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002811/0.1512, allocations: 282.3 kB / 485 MB, free: 11.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005185/0.1517, allocations: 449.7 kB / 485.4 MB, free: 10.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.1517, allocations: 7.938 kB / 485.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001047/0.1528, allocations: 0.6753 MB / 486.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.1528, allocations: 8 kB / 486.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.1528, allocations: 8.344 kB / 486.1 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004307/0.1533, allocations: 149.6 kB / 486.3 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002859/0.1536, allocations: 71.91 kB / 486.3 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00333/0.1569, allocations: 3.676 MB / 490 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002487/0.1572, allocations: 19.94 kB / 490 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.515e-05/0.1572, allocations: 20 kB / 490.1 MB, free: 5.871 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (42): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000266/0.1575, allocations: 229.7 kB / 490.3 MB, free: 5.637 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.621e-05/0.1576, allocations: 51.44 kB / 490.3 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009255/0.1585, allocations: 0.5672 MB / 490.9 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.1585, allocations: 4 kB / 490.9 MB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0006963/0.1592, allocations: 491.8 kB / 491.4 MB, free: 4.469 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.1592, allocations: 3.984 kB / 491.4 MB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001429/0.1607, allocations: 1.002 MB / 492.4 MB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1607, allocations: 0 / 492.4 MB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002063/0.1609, allocations: 43.97 kB / 492.4 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002664/0.1612, allocations: 96.75 kB / 492.5 MB, free: 3.254 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.1612, allocations: 4 kB / 492.5 MB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002017/0.1632, allocations: 2.02 MB / 494.6 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1633, allocations: 4.062 kB / 494.6 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000944/0.1642, allocations: 0.6536 MB / 495.2 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001611/0.1644, allocations: 140.6 kB / 495.3 MB, free: 252 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.892e-05/0.1644, allocations: 8 kB / 495.4 MB, free: 244 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.1647, allocations: 8 kB / 495.4 MB, free: 236 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.543e-05/0.1647, allocations: 19.97 kB / 495.4 MB, free: 216 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.1647, allocations: 11.98 kB / 495.4 MB, free: 204 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003147/0.1651, allocations: 303.1 kB / 495.7 MB, free: 15.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1651, allocations: 0 / 495.7 MB, free: 15.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005042/0.1656, allocations: 123.9 kB / 495.8 MB, free: 15.79 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.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 (22): * Single equations (assignments): 20 * 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 {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001196/0.1668, allocations: 1.183 MB / 497 MB, free: 14.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001071/0.1679, allocations: 0.6353 MB / 497.6 MB, free: 13.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.1679, allocations: 0 / 497.6 MB, free: 13.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004711/0.1684, allocations: 306.3 kB / 497.9 MB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006485/0.169, allocations: 121.3 kB / 498 MB, free: 13.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006716/0.1758, allocations: 4.814 MB / 0.4911 GB, free: 8.383 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006543/0.1764, allocations: 0.9205 MB / 0.492 GB, free: 7.438 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000325/0.1768, allocations: 76.31 kB / 0.492 GB, free: 7.363 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002667/0.1771, allocations: 179.4 kB / 0.4922 GB, free: 7.188 MB / 382.1 MB Notification: Performance of SimCode: time 3.165e-06/0.1771, allocations: 0 / 0.4922 GB, free: 7.188 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03342/0.2105, allocations: 10.28 MB / 0.5023 GB, free: 13.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.275/9.485, allocations: 7.891 kB / 0.5023 GB, free: 13.07 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches