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.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.001997/0.001997, allocations: 113 kB / 18.49 MB, free: 4.539 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.002251/0.002251, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.508/1.508, allocations: 230.6 MB / 254.8 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1902/0.1902, allocations: 38.51 MB / 349.4 MB, free: 2.602 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 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.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="cs",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.002015/0.002015, allocations: 69.31 kB / 487.8 MB, free: 32.41 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1164, allocations: 62.41 MB / 0.5374 GB, free: 9.641 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.00817/0.1245, allocations: 4.862 MB / 0.5421 GB, free: 4.754 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002677/0.1272, allocations: 1.511 MB / 0.5436 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002986/0.1275, allocations: 19.81 kB / 0.5436 GB, free: 3.219 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00042/0.1279, allocations: 115.1 kB / 0.5437 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008018/0.1287, allocations: 270.4 kB / 0.544 GB, free: 2.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004405/0.1292, allocations: 139.7 kB / 0.5441 GB, free: 2.703 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009384/0.1301, allocations: 0.5915 MB / 0.5447 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005611/0.1307, allocations: 330.6 kB / 0.545 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004284/0.1311, allocations: 251.1 kB / 0.5452 GB, free: 1.535 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003949/0.1315, allocations: 247 kB / 0.5455 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.237e-05/0.1316, allocations: 40 kB / 0.5455 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.445e-05/0.1316, allocations: 40 kB / 0.5455 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001448/0.1318, allocations: 123.6 kB / 0.5457 GB, free: 1.094 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000248/0.132, allocations: 226.9 kB / 0.5459 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007463/0.1328, allocations: 0.5019 MB / 0.5464 GB, free: 376 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.1328, allocations: 0 / 0.5464 GB, free: 376 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1328, allocations: 0 / 0.5464 GB, free: 376 kB / 398.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.1328, allocations: 4 kB / 0.5464 GB, free: 372 kB / 398.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.001376/0.1342, allocations: 0.7143 MB / 0.5471 GB, free: 15.6 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.1342, allocations: 12.03 kB / 0.5471 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.343e-05/0.1342, allocations: 13.19 kB / 0.5471 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.864e-05/0.1343, allocations: 70.72 kB / 0.5472 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.892e-05/0.1344, allocations: 44.66 kB / 0.5472 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006436/0.135, allocations: 431.9 kB / 0.5476 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.632e-05/0.1351, allocations: 50.7 kB / 0.5477 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.195e-05/0.1352, allocations: 40 kB / 0.5477 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007371/0.136, allocations: 428.1 kB / 0.5481 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.136, allocations: 11.92 kB / 0.5481 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.136, allocations: 20 kB / 0.5481 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.136, allocations: 8 kB / 0.5481 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005829/0.1366, allocations: 270 kB / 0.5484 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002339/0.1389, allocations: 1.838 MB / 0.5502 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003532/0.1393, allocations: 171.7 kB / 0.5504 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.1395, allocations: 74.55 kB / 0.5504 GB, free: 11.9 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.1395, allocations: 4 kB / 0.5504 GB, free: 11.9 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.1395, allocations: 38.5 kB / 0.5505 GB, free: 11.85 MB / 414.1 MB Notification: Performance of pre-optimization done (n=18): time 1.703e-06/0.1395, allocations: 0 / 0.5505 GB, free: 11.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001459/0.141, allocations: 0.7243 MB / 0.5512 GB, free: 11.08 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.497e-05/0.141, allocations: 106.8 kB / 0.5513 GB, free: 10.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003643/0.1414, allocations: 312.4 kB / 0.5516 GB, free: 10.63 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.1414, allocations: 33.7 kB / 0.5516 GB, free: 10.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002248/0.1417, allocations: 244.2 kB / 0.5518 GB, free: 10.35 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.957e-05/0.1418, allocations: 71.38 kB / 0.5519 GB, free: 10.28 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.1419, allocations: 69.97 kB / 0.552 GB, free: 10.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.142, allocations: 338.9 kB / 0.5523 GB, free: 9.863 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.1422, allocations: 76.61 kB / 0.5524 GB, free: 9.789 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002864/0.1425, allocations: 201.5 kB / 0.5526 GB, free: 9.535 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000494/0.143, allocations: 299 kB / 0.5529 GB, free: 9.188 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.143, allocations: 3.938 kB / 0.5529 GB, free: 9.184 MB / 414.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006035/0.1436, allocations: 328.9 kB / 0.5532 GB, free: 8.855 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.1436, allocations: 4 kB / 0.5532 GB, free: 8.852 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.1436, allocations: 11.94 kB / 0.5532 GB, free: 8.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.324e-05/0.1436, allocations: 4.562 kB / 0.5532 GB, free: 8.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003143/0.144, allocations: 79.89 kB / 0.5533 GB, free: 8.758 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.367e-05/0.144, allocations: 4 kB / 0.5533 GB, free: 8.754 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002104/0.1442, allocations: 12 kB / 0.5533 GB, free: 8.742 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.1442, allocations: 16 kB / 0.5533 GB, free: 8.727 MB / 414.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.0002386/0.1445, allocations: 185.6 kB / 0.5535 GB, free: 8.535 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.25e-05/0.1445, allocations: 39.73 kB / 0.5535 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004522/0.145, allocations: 195.4 kB / 0.5537 GB, free: 8.297 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.145, allocations: 4 kB / 0.5537 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.145, allocations: 3.938 kB / 0.5537 GB, free: 8.289 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.145, allocations: 7.984 kB / 0.5537 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009911/0.146, allocations: 0.62 MB / 0.5543 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.146, allocations: 0 / 0.5543 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002385/0.1462, allocations: 43.97 kB / 0.5544 GB, free: 7.559 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.1462, allocations: 0 / 0.5544 GB, free: 7.559 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.1463, allocations: 8.031 kB / 0.5544 GB, free: 7.551 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.1463, allocations: 4 kB / 0.5544 GB, free: 7.547 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1463, allocations: 0 / 0.5544 GB, free: 7.547 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006251/0.1469, allocations: 452.1 kB / 0.5548 GB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.078e-05/0.147, allocations: 109 kB / 0.5549 GB, free: 6.957 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.147, allocations: 8 kB / 0.5549 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.1472, allocations: 8 kB / 0.5549 GB, free: 6.941 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.312e-05/0.1473, allocations: 7.984 kB / 0.5549 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.1473, allocations: 7.938 kB / 0.5549 GB, free: 6.926 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002399/0.1475, allocations: 223 kB / 0.5552 GB, free: 6.711 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1475, allocations: 3.938 kB / 0.5552 GB, free: 6.707 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004563/0.148, allocations: 72 kB / 0.5552 GB, free: 6.637 MB / 414.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.001021/0.149, allocations: 0.9787 MB / 0.5562 GB, free: 5.625 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004664/0.1495, allocations: 186.7 kB / 0.5564 GB, free: 5.445 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1495, allocations: 0 / 0.5564 GB, free: 5.445 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000173/0.1496, allocations: 79.84 kB / 0.5564 GB, free: 5.371 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007258/0.1504, allocations: 101.4 kB / 0.5565 GB, free: 5.273 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004853/0.1552, allocations: 3.432 MB / 0.5599 GB, free: 1.633 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004947/0.1557, allocations: 0.8146 MB / 0.5607 GB, free: 0.793 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002242/0.1559, allocations: 47.25 kB / 0.5607 GB, free: 0.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001881/0.1561, allocations: 119.4 kB / 0.5608 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1561, allocations: 0 / 0.5608 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02682/0.1829, allocations: 7.133 MB / 0.5678 GB, free: 9.652 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.905/9.088, allocations: 10.05 kB / 0.5678 GB, free: 9.645 MB / 430.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.234602975018788]