Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.0017/0.0017, 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.002139/0.002139, 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.577/1.577, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.1844/0.1844, allocations: 38.52 MB / 348.7 MB, free: 2.664 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.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",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.002023/0.002023, allocations: 67.89 kB / 487.2 MB, free: 22.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1217, allocations: 62.41 MB / 0.5367 GB, free: 7.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006748/0.1284, allocations: 4.603 MB / 0.5412 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002507/0.1309, allocations: 1.522 MB / 0.5427 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002911/0.1312, allocations: 23.81 kB / 0.5427 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000471/0.1317, allocations: 111.2 kB / 0.5428 GB, free: 1.305 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007281/0.1324, allocations: 290.2 kB / 0.5431 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000299/0.1327, allocations: 103.9 kB / 0.5432 GB, free: 0.918 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007576/0.1335, allocations: 0.5096 MB / 0.5437 GB, free: 416 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002462/0.1337, allocations: 127.9 kB / 0.5438 GB, free: 284 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003206/0.134, allocations: 215.2 kB / 0.544 GB, free: 68 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003408/0.1344, allocations: 223.2 kB / 0.5442 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.698e-05/0.1344, allocations: 24 kB / 0.5442 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.934e-05/0.1345, allocations: 28 kB / 0.5443 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001229/0.1346, allocations: 99.66 kB / 0.5443 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.1348, allocations: 179.1 kB / 0.5445 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005292/0.1353, allocations: 390.3 kB / 0.5449 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1353, allocations: 0 / 0.5449 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1353, allocations: 0 / 0.5449 GB, free: 15.14 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.1353, allocations: 0 / 0.5449 GB, free: 15.14 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001174/0.1365, allocations: 0.6629 MB / 0.5455 GB, free: 14.43 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.1366, allocations: 15.97 kB / 0.5456 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.791e-05/0.1366, allocations: 62.72 kB / 0.5456 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.239e-05/0.1367, allocations: 44.66 kB / 0.5457 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000699/0.1374, allocations: 419.6 kB / 0.5461 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.802e-05/0.1375, allocations: 20.56 kB / 0.5461 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.706e-05/0.1375, allocations: 24 kB / 0.5461 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005542/0.1381, allocations: 334.2 kB / 0.5464 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.1381, allocations: 7.938 kB / 0.5464 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.1381, allocations: 8 kB / 0.5464 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.1381, allocations: 8 kB / 0.5464 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003824/0.1385, allocations: 205.5 kB / 0.5466 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001955/0.1405, allocations: 1.482 MB / 0.5481 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004678/0.1409, allocations: 198.2 kB / 0.5483 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.1411, allocations: 67.48 kB / 0.5483 GB, free: 11.33 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.919e-05/0.1411, allocations: 4 kB / 0.5483 GB, free: 11.33 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/0.1411, allocations: 46.48 kB / 0.5484 GB, free: 11.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 2.454e-06/0.1411, allocations: 0 / 0.5484 GB, free: 11.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001362/0.1425, allocations: 0.698 MB / 0.5491 GB, free: 10.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.1426, allocations: 132.5 kB / 0.5492 GB, free: 10.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003937/0.143, allocations: 309.7 kB / 0.5495 GB, free: 10.05 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.894e-05/0.143, allocations: 33.7 kB / 0.5495 GB, free: 10.01 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.1432, allocations: 220.1 kB / 0.5497 GB, free: 9.789 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.028e-05/0.1433, allocations: 63.47 kB / 0.5498 GB, free: 9.727 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.809e-05/0.1434, allocations: 49.75 kB / 0.5498 GB, free: 9.672 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.1435, allocations: 354.7 kB / 0.5502 GB, free: 9.316 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.1436, allocations: 51.97 kB / 0.5502 GB, free: 9.266 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/0.1438, allocations: 148.8 kB / 0.5504 GB, free: 9.074 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003165/0.1441, allocations: 223 kB / 0.5506 GB, free: 8.812 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.1441, allocations: 8 kB / 0.5506 GB, free: 8.805 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003968/0.1445, allocations: 245.1 kB / 0.5508 GB, free: 8.559 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.1446, allocations: 8 kB / 0.5508 GB, free: 8.551 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.1446, allocations: 4 kB / 0.5508 GB, free: 8.547 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/0.1446, allocations: 12.38 kB / 0.5508 GB, free: 8.535 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004085/0.145, allocations: 95.81 kB / 0.5509 GB, free: 8.441 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.1461, allocations: 1.365 MB / 0.5523 GB, free: 6.941 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.1463, allocations: 11.95 kB / 0.5523 GB, free: 6.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.1463, allocations: 19.92 kB / 0.5523 GB, free: 6.91 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002005/0.1465, allocations: 173.5 kB / 0.5525 GB, free: 6.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.1466, allocations: 35.91 kB / 0.5525 GB, free: 6.695 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003508/0.147, allocations: 184.4 kB / 0.5527 GB, free: 6.512 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.147, allocations: 4 kB / 0.5527 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-06/0.147, allocations: 0 / 0.5527 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.147, allocations: 4 kB / 0.5527 GB, free: 6.504 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008832/0.1479, allocations: 0.5475 MB / 0.5532 GB, free: 5.902 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1479, allocations: 3.938 kB / 0.5532 GB, free: 5.898 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002374/0.1481, allocations: 40.02 kB / 0.5533 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.892e-06/0.1481, allocations: 4 kB / 0.5533 GB, free: 5.855 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.1481, allocations: 4 kB / 0.5533 GB, free: 5.852 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.1481, allocations: 4 kB / 0.5533 GB, free: 5.848 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.1481, allocations: 3.938 kB / 0.5533 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005019/0.1486, allocations: 497.5 kB / 0.5538 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.839e-05/0.1487, allocations: 108.9 kB / 0.5539 GB, free: 5.215 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.1488, allocations: 8.031 kB / 0.5539 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001965/0.1489, allocations: 4 kB / 0.5539 GB, free: 5.203 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.149, allocations: 15.92 kB / 0.5539 GB, free: 5.188 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.149, allocations: 4 kB / 0.5539 GB, free: 5.184 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002448/0.1492, allocations: 219.2 kB / 0.5541 GB, free: 4.973 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1492, allocations: 0 / 0.5541 GB, free: 4.973 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004363/0.1497, allocations: 60 kB / 0.5542 GB, free: 4.914 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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.000893/0.1506, allocations: 1.029 MB / 0.5552 GB, free: 3.852 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000401/0.151, allocations: 155.7 kB / 0.5553 GB, free: 3.699 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.151, allocations: 0 / 0.5553 GB, free: 3.699 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.1511, allocations: 67.86 kB / 0.5554 GB, free: 3.633 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007354/0.1518, allocations: 96.89 kB / 0.5555 GB, free: 3.543 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004375/0.1562, allocations: 3.278 MB / 0.5587 GB, free: 92 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/0.1567, allocations: 0.799 MB / 0.5594 GB, free: 15.27 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001938/0.1569, allocations: 54.92 kB / 0.5595 GB, free: 15.21 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.157, allocations: 111.4 kB / 0.5596 GB, free: 15.1 MB / 430.1 MB Notification: Performance of SimCode: time 6.21e-07/0.157, allocations: 4 kB / 0.5596 GB, free: 15.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03609/0.1931, allocations: 6.766 MB / 0.5662 GB, free: 8.477 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.635/8.828, allocations: 3.938 kB / 0.5662 GB, free: 8.473 MB / 430.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_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_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.Elementary.Machines_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv failed! Error: Could not read variable motor.v in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv. Warning: Get data of variable motor.v from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv failed! Error: Could not read variable motor.w_el in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv. Warning: Get data of variable motor.w_el from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv failed! Error: Could not read variable power.p in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv. Warning: Get data of variable power.p from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.975768015254289]