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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002068/0.002068, allocations: 119.9 kB / 17.79 MB, free: 5.285 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.002131/0.002131, allocations: 189.2 kB / 20.73 MB, free: 2.352 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.506/1.506, allocations: 225.6 MB / 249.1 MB, free: 3.613 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.1812/0.1812, allocations: 38.51 MB / 342.5 MB, free: 8.164 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 71.8 kB / 478.6 MB, free: 33.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1169, allocations: 61.25 MB / 0.5272 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.008521/0.1254, allocations: 4.832 MB / 0.5319 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002969/0.1284, allocations: 1.495 MB / 0.5334 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004707/0.1289, allocations: 19.88 kB / 0.5334 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005065/0.1294, allocations: 107.2 kB / 0.5335 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009904/0.1303, allocations: 274.4 kB / 0.5338 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004501/0.1308, allocations: 139.8 kB / 0.5339 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001067/0.1319, allocations: 0.5837 MB / 0.5345 GB, free: 9.922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005879/0.1325, allocations: 322.7 kB / 0.5348 GB, free: 9.602 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005192/0.133, allocations: 243 kB / 0.535 GB, free: 9.363 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005089/0.1335, allocations: 251 kB / 0.5353 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.614e-05/0.1336, allocations: 40 kB / 0.5353 GB, free: 9.078 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.1337, allocations: 40 kB / 0.5353 GB, free: 9.039 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001621/0.1338, allocations: 123.6 kB / 0.5355 GB, free: 8.918 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002973/0.1341, allocations: 223 kB / 0.5357 GB, free: 8.699 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007737/0.1349, allocations: 0.498 MB / 0.5362 GB, free: 8.199 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1349, allocations: 4 kB / 0.5362 GB, free: 8.195 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1349, allocations: 4 kB / 0.5362 GB, free: 8.191 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.128e-05/0.1349, allocations: 0 / 0.5362 GB, free: 8.191 MB / 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.001723/0.1367, allocations: 0.7182 MB / 0.5369 GB, free: 7.422 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.017e-05/0.1367, allocations: 23.83 kB / 0.5369 GB, free: 7.398 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001269/0.1368, allocations: 70.72 kB / 0.537 GB, free: 7.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.137, allocations: 44.66 kB / 0.537 GB, free: 7.277 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008411/0.1378, allocations: 420.1 kB / 0.5374 GB, free: 6.832 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.1379, allocations: 54.7 kB / 0.5375 GB, free: 6.773 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.431e-05/0.138, allocations: 39.95 kB / 0.5375 GB, free: 6.734 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008103/0.1388, allocations: 436 kB / 0.5379 GB, free: 6.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.338e-05/0.1388, allocations: 4 kB / 0.5379 GB, free: 6.266 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.418e-05/0.1389, allocations: 12 kB / 0.5379 GB, free: 6.254 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.1389, allocations: 12 kB / 0.5379 GB, free: 6.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005602/0.1394, allocations: 274 kB / 0.5382 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00271/0.1422, allocations: 1.846 MB / 0.54 GB, free: 4.004 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003758/0.1425, allocations: 179.6 kB / 0.5402 GB, free: 3.801 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.1427, allocations: 70.61 kB / 0.5402 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.1427, allocations: 0 / 0.5402 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.73e-05/0.1427, allocations: 38.56 kB / 0.5403 GB, free: 3.676 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.262e-06/0.1427, allocations: 0 / 0.5403 GB, free: 3.676 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001498/0.1442, allocations: 0.7168 MB / 0.541 GB, free: 2.906 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.1444, allocations: 114.8 kB / 0.5411 GB, free: 2.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004071/0.1448, allocations: 312.4 kB / 0.5414 GB, free: 2.457 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.195e-05/0.1448, allocations: 41.89 kB / 0.5414 GB, free: 2.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.145, allocations: 244.1 kB / 0.5417 GB, free: 2.168 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.861e-05/0.145, allocations: 75.39 kB / 0.5417 GB, free: 2.094 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.1452, allocations: 69.97 kB / 0.5418 GB, free: 2.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.1453, allocations: 334.8 kB / 0.5421 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.1455, allocations: 76.61 kB / 0.5422 GB, free: 1.609 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002919/0.1458, allocations: 197.5 kB / 0.5424 GB, free: 1.359 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005082/0.1463, allocations: 298.8 kB / 0.5427 GB, free: 1.012 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1463, allocations: 0 / 0.5427 GB, free: 1.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006063/0.1469, allocations: 333.3 kB / 0.543 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.1469, allocations: 4 kB / 0.543 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.1469, allocations: 4 kB / 0.543 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.771e-05/0.147, allocations: 8 kB / 0.543 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003013/0.1473, allocations: 75.89 kB / 0.5431 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.1473, allocations: 7.938 kB / 0.5431 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002124/0.1475, allocations: 15.95 kB / 0.5431 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.958e-05/0.1475, allocations: 16 kB / 0.5431 GB, free: 0.5508 MB / 398.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.0002178/0.1478, allocations: 185.8 kB / 0.5433 GB, free: 368 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.714e-05/0.1478, allocations: 35.75 kB / 0.5433 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004188/0.1483, allocations: 194.7 kB / 0.5435 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1483, allocations: 4 kB / 0.5435 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1483, allocations: 0 / 0.5435 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.1483, allocations: 7.984 kB / 0.5435 GB, free: 112 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.1493, allocations: 0.6085 MB / 0.5441 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.1493, allocations: 0 / 0.5441 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002866/0.1496, allocations: 43.97 kB / 0.5441 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1496, allocations: 3.938 kB / 0.5441 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.1497, allocations: 4 kB / 0.5442 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.1497, allocations: 0 / 0.5442 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.1497, allocations: 4 kB / 0.5442 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006384/0.1503, allocations: 458.2 kB / 0.5446 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.793e-05/0.1504, allocations: 105 kB / 0.5447 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.362e-05/0.1505, allocations: 8 kB / 0.5447 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.1507, allocations: 11.94 kB / 0.5447 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/0.1507, allocations: 19.92 kB / 0.5447 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.1507, allocations: 7.938 kB / 0.5447 GB, free: 14.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002514/0.151, allocations: 227 kB / 0.545 GB, free: 14.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.151, allocations: 0 / 0.545 GB, free: 14.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004243/0.1514, allocations: 68 kB / 0.545 GB, free: 14.47 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.0009679/0.1524, allocations: 0.9851 MB / 0.546 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004523/0.1528, allocations: 185.3 kB / 0.5462 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1528, allocations: 8.062 kB / 0.5462 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001731/0.153, allocations: 67.91 kB / 0.5462 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006789/0.1537, allocations: 103.5 kB / 0.5463 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005401/0.1591, allocations: 3.433 MB / 0.5497 GB, free: 9.469 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005555/0.1596, allocations: 0.8145 MB / 0.5505 GB, free: 8.629 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002183/0.1599, allocations: 55.25 kB / 0.5505 GB, free: 8.578 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001868/0.16, allocations: 123.3 kB / 0.5506 GB, free: 8.457 MB / 414.1 MB Notification: Performance of SimCode: time 7.21e-07/0.16, allocations: 0 / 0.5506 GB, free: 8.457 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03613/0.1962, allocations: 7.085 MB / 0.5576 GB, free: 1.512 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.55/8.746, allocations: 0.9375 kB / 0.5576 GB, free: 1.512 MB / 414.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_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.704422049690038]