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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 116.8 kB / 17.74 MB, free: 5.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 186.9 kB / 20.68 MB, free: 2.383 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 222.9 MB / 246.4 MB, free: 4.223 MB / 190.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.2999/0.2999, allocations: 38.02 MB / 336.6 MB, free: 12.97 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.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.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: Performance of FrontEnd - loaded program: time 0.003036/0.003036, allocations: 72.5 kB / 466.4 MB, free: 27.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1263, allocations: 58.07 MB / 0.5121 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.00668/0.133, allocations: 4.518 MB / 0.5166 GB, free: 5.699 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002382/0.1354, allocations: 1.495 MB / 0.518 GB, free: 4.199 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003039/0.1357, allocations: 15.88 kB / 0.518 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004967/0.1362, allocations: 119.1 kB / 0.5181 GB, free: 4.066 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008011/0.1371, allocations: 282.3 kB / 0.5184 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002965/0.1374, allocations: 111.8 kB / 0.5185 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007634/0.1382, allocations: 0.4981 MB / 0.519 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002905/0.1385, allocations: 159.9 kB / 0.5192 GB, free: 3.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002863/0.1388, allocations: 191.2 kB / 0.5193 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003489/0.1391, allocations: 223 kB / 0.5196 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.039e-05/0.1392, allocations: 24 kB / 0.5196 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.027e-05/0.1393, allocations: 28 kB / 0.5196 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.1394, allocations: 103.6 kB / 0.5197 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002102/0.1396, allocations: 183 kB / 0.5199 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005275/0.1402, allocations: 382.4 kB / 0.5202 GB, free: 1.906 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1402, allocations: 3.938 kB / 0.5202 GB, free: 1.902 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1402, allocations: 0 / 0.5202 GB, free: 1.902 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.1402, allocations: 0 / 0.5202 GB, free: 1.902 MB / 382.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.001117/0.1413, allocations: 0.6746 MB / 0.5209 GB, free: 1.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.1414, allocations: 15.89 kB / 0.5209 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.665e-05/0.1414, allocations: 62.67 kB / 0.521 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.922e-05/0.1415, allocations: 40.7 kB / 0.521 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006492/0.1422, allocations: 411.6 kB / 0.5214 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.1422, allocations: 16.56 kB / 0.5214 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.474e-05/0.1423, allocations: 35.95 kB / 0.5215 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005239/0.1428, allocations: 330.2 kB / 0.5218 GB, free: 208 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/0.1429, allocations: 7.938 kB / 0.5218 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.879e-05/0.1429, allocations: 16 kB / 0.5218 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.1429, allocations: 8 kB / 0.5218 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003755/0.1433, allocations: 205.5 kB / 0.522 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.145, allocations: 1.482 MB / 0.5235 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004076/0.1454, allocations: 194.3 kB / 0.5236 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.1455, allocations: 75.48 kB / 0.5237 GB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.1456, allocations: 8 kB / 0.5237 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/0.1456, allocations: 42.48 kB / 0.5238 GB, free: 14.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.553e-06/0.1456, allocations: 0 / 0.5238 GB, free: 14.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001136/0.1468, allocations: 0.7017 MB / 0.5244 GB, free: 13.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001368/0.1469, allocations: 136.6 kB / 0.5246 GB, free: 13.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003313/0.1473, allocations: 317.6 kB / 0.5249 GB, free: 12.79 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.1473, allocations: 33.7 kB / 0.5249 GB, free: 12.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.1475, allocations: 220.2 kB / 0.5251 GB, free: 12.53 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.101e-05/0.1475, allocations: 63.44 kB / 0.5252 GB, free: 12.46 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.762e-05/0.1476, allocations: 53.64 kB / 0.5252 GB, free: 12.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.1478, allocations: 342.8 kB / 0.5256 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.1479, allocations: 55.97 kB / 0.5256 GB, free: 12.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/0.1481, allocations: 144.7 kB / 0.5257 GB, free: 11.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002945/0.1484, allocations: 220.7 kB / 0.526 GB, free: 11.56 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.1484, allocations: 4 kB / 0.526 GB, free: 11.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003897/0.1488, allocations: 252.1 kB / 0.5262 GB, free: 11.3 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.1488, allocations: 8 kB / 0.5262 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1489, allocations: 3.938 kB / 0.5262 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.1489, allocations: 11.94 kB / 0.5262 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003829/0.1493, allocations: 84.33 kB / 0.5263 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/0.1503, allocations: 1.373 MB / 0.5276 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001498/0.1505, allocations: 11.98 kB / 0.5277 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.1505, allocations: 8 kB / 0.5277 GB, free: 9.672 MB / 398.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.0001917/0.1507, allocations: 169.6 kB / 0.5278 GB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.786e-05/0.1508, allocations: 35.77 kB / 0.5279 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003378/0.1511, allocations: 188.5 kB / 0.528 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.1511, allocations: 7.938 kB / 0.528 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.1511, allocations: 0 / 0.528 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.1512, allocations: 4 kB / 0.5281 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008416/0.152, allocations: 0.5451 MB / 0.5286 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.152, allocations: 8 kB / 0.5286 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002295/0.1523, allocations: 35.98 kB / 0.5286 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1523, allocations: 0 / 0.5286 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.1523, allocations: 8 kB / 0.5286 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.1523, allocations: 8.031 kB / 0.5286 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.1523, allocations: 7.875 kB / 0.5286 GB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004854/0.1528, allocations: 497.2 kB / 0.5291 GB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.053e-05/0.1529, allocations: 105 kB / 0.5292 GB, free: 7.969 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.911e-05/0.1529, allocations: 12 kB / 0.5292 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001941/0.1531, allocations: 4 kB / 0.5292 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.085e-05/0.1532, allocations: 15.92 kB / 0.5293 GB, free: 7.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.1532, allocations: 4 kB / 0.5293 GB, free: 7.934 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002336/0.1534, allocations: 223.2 kB / 0.5295 GB, free: 7.715 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.186e-06/0.1535, allocations: 0 / 0.5295 GB, free: 7.715 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004227/0.1539, allocations: 63.94 kB / 0.5295 GB, free: 7.652 MB / 398.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.0008205/0.1547, allocations: 1.025 MB / 0.5305 GB, free: 6.594 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004016/0.1551, allocations: 163.8 kB / 0.5307 GB, free: 6.438 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.1551, allocations: 0 / 0.5307 GB, free: 6.438 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.1553, allocations: 67.8 kB / 0.5308 GB, free: 6.371 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007528/0.156, allocations: 110.1 kB / 0.5309 GB, free: 6.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004404/0.1604, allocations: 3.276 MB / 0.5341 GB, free: 2.82 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005024/0.161, allocations: 0.8029 MB / 0.5348 GB, free: 1.992 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002076/0.1612, allocations: 42.95 kB / 0.5349 GB, free: 1.949 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001907/0.1614, allocations: 119.4 kB / 0.535 GB, free: 1.832 MB / 398.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1614, allocations: 0 / 0.535 GB, free: 1.832 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03126/0.1927, allocations: 6.721 MB / 0.5416 GB, free: 11.24 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.309/8.502, allocations: 6.969 kB / 0.5416 GB, free: 11.24 MB / 414.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_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.54312346095685]