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.001142/0.001142, allocations: 107.8 kB / 16.92 MB, free: 5.855 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.001118/0.001118, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.4/1.4, allocations: 222.9 MB / 241.6 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1741/0.1741, allocations: 38.03 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001622, allocations: 64.02 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1272, allocations: 58.05 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.007252/0.1345, allocations: 4.794 MB / 461.8 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002253/0.1368, allocations: 1.495 MB / 463.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000237/0.1371, allocations: 15.94 kB / 463.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004068/0.1375, allocations: 115.1 kB / 463.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000686/0.1382, allocations: 266.4 kB / 463.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003656/0.1386, allocations: 131.8 kB / 463.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007524/0.1394, allocations: 0.5839 MB / 464.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004851/0.1399, allocations: 402.5 kB / 464.7 MB, free: 156 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003383/0.1402, allocations: 227.1 kB / 465 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000375/0.1406, allocations: 243 kB / 465.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.411e-05/0.1407, allocations: 44 kB / 465.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.466e-05/0.1408, allocations: 40 kB / 465.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.1409, allocations: 115.7 kB / 465.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002341/0.1411, allocations: 226.9 kB / 465.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005363/0.1417, allocations: 0.4944 MB / 466.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1417, allocations: 7.938 kB / 466.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1417, allocations: 0 / 466.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.1417, allocations: 0 / 466.1 MB, free: 14.77 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001339/0.1431, allocations: 0.6992 MB / 466.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.1431, allocations: 15.83 kB / 466.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.171e-05/0.1432, allocations: 70.72 kB / 466.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.456e-05/0.1433, allocations: 48.38 kB / 467 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005524/0.1439, allocations: 407.8 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-05/0.144, allocations: 58.7 kB / 467.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.474e-05/0.144, allocations: 39.98 kB / 467.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006309/0.1447, allocations: 424.1 kB / 467.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.1447, allocations: 4 kB / 467.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.638e-05/0.1448, allocations: 15.98 kB / 467.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.1448, allocations: 12 kB / 467.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005398/0.1453, allocations: 270 kB / 468.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002015/0.1473, allocations: 1.845 MB / 470 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.1477, allocations: 175.6 kB / 470.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.1478, allocations: 78.67 kB / 470.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.196e-05/0.1479, allocations: 0 / 470.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.1479, allocations: 38.5 kB / 470.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.192e-06/0.1479, allocations: 3.938 kB / 470.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001286/0.1492, allocations: 0.7101 MB / 471 MB, free: 9.535 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.1493, allocations: 110.8 kB / 471.1 MB, free: 9.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003007/0.1496, allocations: 308.5 kB / 471.4 MB, free: 9.094 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.1496, allocations: 37.64 kB / 471.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001641/0.1498, allocations: 235.6 kB / 471.7 MB, free: 8.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.975e-05/0.1499, allocations: 78.98 kB / 471.8 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.623e-05/0.1499, allocations: 65.94 kB / 471.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.1501, allocations: 342.9 kB / 472.2 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.1502, allocations: 72.62 kB / 472.2 MB, free: 8.254 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002284/0.1505, allocations: 209.5 kB / 472.4 MB, free: 7.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004049/0.1509, allocations: 289.9 kB / 472.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1509, allocations: 0 / 472.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005292/0.1514, allocations: 331.9 kB / 473 MB, free: 7.324 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.1515, allocations: 4 kB / 473 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.1515, allocations: 4 kB / 473 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.1515, allocations: 8.562 kB / 473.1 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002846/0.1518, allocations: 79.91 kB / 473.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.1518, allocations: 11.92 kB / 473.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001669/0.152, allocations: 12 kB / 473.2 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.152, allocations: 16 kB / 473.2 MB, free: 7.191 MB / 350.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.0001686/0.1522, allocations: 173.8 kB / 473.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.328e-05/0.1523, allocations: 39.55 kB / 473.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003871/0.1527, allocations: 199.1 kB / 473.6 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.1527, allocations: 4 kB / 473.6 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.1527, allocations: 4 kB / 473.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.1527, allocations: 4 kB / 473.6 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000894/0.1536, allocations: 0.6161 MB / 474.2 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1536, allocations: 0 / 474.2 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.1539, allocations: 43.91 kB / 474.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.1539, allocations: 8.016 kB / 474.3 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.1539, allocations: 8 kB / 474.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1539, allocations: 0 / 474.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.1539, allocations: 4 kB / 474.3 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006003/0.1545, allocations: 455.8 kB / 474.7 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.66e-05/0.1546, allocations: 100.7 kB / 474.8 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.727e-05/0.1547, allocations: 8 kB / 474.8 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.1548, allocations: 4.031 kB / 474.8 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.995e-05/0.1549, allocations: 15.98 kB / 474.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.1549, allocations: 7.938 kB / 474.8 MB, free: 5.402 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002302/0.1552, allocations: 223 kB / 475.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1552, allocations: 0 / 475.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004075/0.1556, allocations: 71.94 kB / 475.1 MB, free: 5.113 MB / 350.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.0009288/0.1565, allocations: 0.9891 MB / 476.1 MB, free: 4.094 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004577/0.157, allocations: 199.7 kB / 476.3 MB, free: 3.898 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.157, allocations: 4 kB / 476.3 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001612/0.1572, allocations: 76.97 kB / 476.4 MB, free: 3.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006944/0.1579, allocations: 107.1 kB / 476.5 MB, free: 3.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004265/0.1622, allocations: 3.43 MB / 479.9 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004717/0.1627, allocations: 0.8185 MB / 480.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002191/0.1629, allocations: 51.25 kB / 480.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001673/0.1631, allocations: 115.4 kB / 480.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1631, allocations: 0 / 480.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03498/0.1981, allocations: 6.901 MB / 487.8 MB, free: 8.293 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.595/7.794, allocations: 11.05 kB / 487.8 MB, free: 8.285 MB / 366.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