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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001934/0.001934, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002323/0.002323, allocations: 204.3 kB / 20.74 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.643/1.643, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2798/0.2798, allocations: 38.51 MB / 348.7 MB, free: 2.668 MB / 270.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 63.91 kB / 487.1 MB, free: 22.13 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1218, allocations: 62.41 MB / 0.5367 GB, free: 7.598 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007976/0.1298, allocations: 5.321 MB / 0.5419 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003157/0.1329, allocations: 1.62 MB / 0.5434 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003838/0.1333, allocations: 23.81 kB / 0.5435 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004869/0.1338, allocations: 127 kB / 0.5436 GB, free: 492 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008709/0.1347, allocations: 322.1 kB / 0.5439 GB, free: 168 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004491/0.1351, allocations: 159.7 kB / 0.5441 GB, free: 8 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009643/0.1361, allocations: 0.7004 MB / 0.5447 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004954/0.1366, allocations: 371.8 kB / 0.5451 GB, free: 14.93 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004413/0.137, allocations: 310.8 kB / 0.5454 GB, free: 14.63 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004303/0.1375, allocations: 298.8 kB / 0.5457 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.986e-05/0.1375, allocations: 48 kB / 0.5457 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.382e-05/0.1376, allocations: 51.94 kB / 0.5458 GB, free: 14.24 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001727/0.1378, allocations: 147.6 kB / 0.5459 GB, free: 14.09 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002816/0.1381, allocations: 258.8 kB / 0.5462 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007971/0.1389, allocations: 0.6031 MB / 0.5467 GB, free: 13.23 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1389, allocations: 0 / 0.5467 GB, free: 13.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1389, allocations: 4 kB / 0.5467 GB, free: 13.23 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.1389, allocations: 3.938 kB / 0.5468 GB, free: 13.23 MB / 414.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.00157/0.1405, allocations: 0.7888 MB / 0.5475 GB, free: 12.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/0.1405, allocations: 12.03 kB / 0.5475 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001059/0.1406, allocations: 78.72 kB / 0.5476 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.1407, allocations: 56.56 kB / 0.5477 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007737/0.1415, allocations: 479.8 kB / 0.5481 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000112/0.1416, allocations: 62.7 kB / 0.5482 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.622e-05/0.1417, allocations: 40 kB / 0.5482 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009255/0.1426, allocations: 0.497 MB / 0.5487 GB, free: 11.09 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.1426, allocations: 4 kB / 0.5487 GB, free: 11.09 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.183e-05/0.1427, allocations: 20 kB / 0.5487 GB, free: 11.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.1427, allocations: 12 kB / 0.5487 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007688/0.1435, allocations: 343.6 kB / 0.5491 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002838/0.1463, allocations: 1.965 MB / 0.551 GB, free: 8.637 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000557/0.1469, allocations: 219.6 kB / 0.5512 GB, free: 8.395 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.1471, allocations: 86.55 kB / 0.5513 GB, free: 8.301 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.1471, allocations: 4.312 kB / 0.5513 GB, free: 8.297 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.423e-05/0.1471, allocations: 42.55 kB / 0.5513 GB, free: 8.246 MB / 414.1 MB Notification: Performance of pre-optimization done (n=20): time 1.823e-06/0.1471, allocations: 0 / 0.5513 GB, free: 8.246 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.001856/0.149, allocations: 0.8576 MB / 0.5522 GB, free: 7.336 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.774e-05/0.1491, allocations: 106.8 kB / 0.5523 GB, free: 7.207 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003961/0.1495, allocations: 337.6 kB / 0.5526 GB, free: 6.867 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.1495, allocations: 29.7 kB / 0.5526 GB, free: 6.832 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/0.1498, allocations: 272.2 kB / 0.5529 GB, free: 6.562 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.092e-05/0.1499, allocations: 79.38 kB / 0.5529 GB, free: 6.484 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.15, allocations: 69.64 kB / 0.553 GB, free: 6.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002192/0.1502, allocations: 342.8 kB / 0.5533 GB, free: 6.066 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/0.1504, allocations: 91.75 kB / 0.5534 GB, free: 5.977 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003221/0.1507, allocations: 217 kB / 0.5536 GB, free: 5.703 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/0.1522, allocations: 0.5513 MB / 0.5542 GB, free: 5.074 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.1522, allocations: 4 kB / 0.5542 GB, free: 5.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009774/0.1532, allocations: 413.4 kB / 0.5546 GB, free: 4.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.1532, allocations: 11.94 kB / 0.5546 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.1532, allocations: 7.938 kB / 0.5546 GB, free: 4.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003445/0.1535, allocations: 80.78 kB / 0.5547 GB, free: 4.559 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002711/0.1538, allocations: 63.91 kB / 0.5547 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002981/0.1568, allocations: 1.95 MB / 0.5566 GB, free: 2.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003556/0.1571, allocations: 12 kB / 0.5566 GB, free: 2.398 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.41e-05/0.1572, allocations: 23.98 kB / 0.5567 GB, free: 2.375 MB / 414.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.0003627/0.1575, allocations: 193.6 kB / 0.5568 GB, free: 2.176 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.1577, allocations: 39.7 kB / 0.5569 GB, free: 2.137 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.032e-05/0.1578, allocations: 35.31 kB / 0.5569 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.1578, allocations: 8 kB / 0.5569 GB, free: 2.098 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.1578, allocations: 4 kB / 0.5569 GB, free: 2.094 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.1578, allocations: 0 / 0.5569 GB, free: 2.094 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001454/0.1592, allocations: 0.7688 MB / 0.5577 GB, free: 1.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1592, allocations: 0 / 0.5577 GB, free: 1.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002638/0.1595, allocations: 48 kB / 0.5577 GB, free: 1.203 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001326/0.1596, allocations: 20.84 kB / 0.5577 GB, free: 1.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.1597, allocations: 8 kB / 0.5578 GB, free: 1.172 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001318/0.161, allocations: 1.394 MB / 0.5591 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.161, allocations: 4.031 kB / 0.5591 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008823/0.1619, allocations: 0.5076 MB / 0.5596 GB, free: 15.1 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.162, allocations: 125 kB / 0.5597 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.894e-05/0.1621, allocations: 7.984 kB / 0.5597 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.1622, allocations: 4 kB / 0.5597 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.357e-05/0.1623, allocations: 31.91 kB / 0.5598 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.1623, allocations: 8 kB / 0.5598 GB, free: 14.91 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002717/0.1626, allocations: 227.2 kB / 0.56 GB, free: 14.68 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1626, allocations: 0 / 0.56 GB, free: 14.68 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005706/0.1632, allocations: 91.94 kB / 0.5601 GB, free: 14.59 MB / 430.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.001205/0.1644, allocations: 1.05 MB / 0.5611 GB, free: 13.51 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008544/0.1652, allocations: 361.2 kB / 0.5615 GB, free: 13.14 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1653, allocations: 0 / 0.5615 GB, free: 13.14 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003824/0.1656, allocations: 211.8 kB / 0.5617 GB, free: 12.93 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007069/0.1663, allocations: 91.8 kB / 0.5618 GB, free: 12.84 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00595/0.1723, allocations: 3.7 MB / 0.5654 GB, free: 8.918 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005803/0.1729, allocations: 0.8426 MB / 0.5662 GB, free: 8.047 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002101/0.1731, allocations: 51.25 kB / 0.5662 GB, free: 7.996 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002144/0.1733, allocations: 139.4 kB / 0.5664 GB, free: 7.859 MB / 430.1 MB Notification: Performance of SimCode: time 8.82e-07/0.1733, allocations: 0 / 0.5664 GB, free: 7.859 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04212/0.2154, allocations: 8.587 MB / 0.5748 GB, free: 15.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/12.79, allocations: 7.812 kB / 0.5748 GB, free: 15.46 MB / 446.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv failed! Error: Could not read variable efficiency.eta in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv. Warning: Get data of variable efficiency.eta from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv failed! Error: Could not read variable power.p in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv. Warning: Get data of variable power.p from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.17195384018123]