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.001785/0.001785, allocations: 111.6 kB / 20.43 MB, free: 1.473 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.002271/0.002271, allocations: 212.9 kB / 23.74 MB, free: 4.688 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.442/1.442, allocations: 230.6 MB / 257.5 MB, free: 8.043 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.1794/0.1794, allocations: 38.53 MB / 352.5 MB, free: 12.58 MB / 286.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="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: 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.002127/0.002127, allocations: 67.89 kB / 492.5 MB, free: 4.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.322, allocations: 62.47 MB / 0.542 GB, free: 472 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.007232/0.3292, allocations: 4.976 MB / 0.5469 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002601/0.3318, allocations: 1.527 MB / 0.5484 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002901/0.3321, allocations: 22.84 kB / 0.5484 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000397/0.3325, allocations: 111.3 kB / 0.5485 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007091/0.3332, allocations: 271.2 kB / 0.5487 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003514/0.3336, allocations: 138.8 kB / 0.5489 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007678/0.3343, allocations: 0.5851 MB / 0.5494 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004312/0.3348, allocations: 294.9 kB / 0.5497 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003712/0.3352, allocations: 251.1 kB / 0.55 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003999/0.3356, allocations: 250.6 kB / 0.5502 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.569e-05/0.3356, allocations: 39.22 kB / 0.5502 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.411e-05/0.3357, allocations: 40.56 kB / 0.5503 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001374/0.3358, allocations: 125.3 kB / 0.5504 GB, free: 9.984 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002368/0.3361, allocations: 220.5 kB / 0.5506 GB, free: 9.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006111/0.3367, allocations: 0.5035 MB / 0.5511 GB, free: 9.477 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3367, allocations: 1.25 kB / 0.5511 GB, free: 9.477 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3367, allocations: 0 / 0.5511 GB, free: 9.477 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.3367, allocations: 3.938 kB / 0.5511 GB, free: 9.473 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.001265/0.3379, allocations: 0.6421 MB / 0.5517 GB, free: 8.949 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.338, allocations: 13.77 kB / 0.5517 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.497e-05/0.3381, allocations: 70.25 kB / 0.5518 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.992e-05/0.3382, allocations: 51.33 kB / 0.5519 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006675/0.3388, allocations: 358.9 kB / 0.5522 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.3389, allocations: 88.16 kB / 0.5523 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.04e-05/0.339, allocations: 40.02 kB / 0.5523 GB, free: 8.457 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007133/0.3397, allocations: 429.1 kB / 0.5527 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.3397, allocations: 1.062 kB / 0.5527 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.3398, allocations: 15.48 kB / 0.5528 GB, free: 8.141 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.3398, allocations: 9.031 kB / 0.5528 GB, free: 8.141 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005527/0.3403, allocations: 279.4 kB / 0.553 GB, free: 8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002365/0.3427, allocations: 1.776 MB / 0.5548 GB, free: 6.395 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003572/0.3431, allocations: 168.7 kB / 0.5549 GB, free: 6.266 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.3432, allocations: 70.14 kB / 0.555 GB, free: 6.215 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.677e-05/0.3433, allocations: 6.219 kB / 0.555 GB, free: 6.211 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.432e-05/0.3433, allocations: 32.84 kB / 0.555 GB, free: 6.172 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 2.154e-06/0.3433, allocations: 3.938 kB / 0.555 GB, free: 6.168 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001384/0.3447, allocations: 0.6421 MB / 0.5557 GB, free: 5.707 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.624e-05/0.3448, allocations: 113.1 kB / 0.5558 GB, free: 5.574 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003504/0.3451, allocations: 310.5 kB / 0.5561 GB, free: 5.371 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.3451, allocations: 30.89 kB / 0.5561 GB, free: 5.336 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/0.3453, allocations: 250.9 kB / 0.5563 GB, free: 5.109 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.406e-05/0.3454, allocations: 76.58 kB / 0.5564 GB, free: 5.043 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.994e-05/0.3455, allocations: 69.08 kB / 0.5565 GB, free: 4.992 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.3457, allocations: 342.4 kB / 0.5568 GB, free: 4.656 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001683/0.3458, allocations: 70.94 kB / 0.5569 GB, free: 4.625 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002801/0.3461, allocations: 199.9 kB / 0.5571 GB, free: 4.422 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004502/0.3466, allocations: 293.6 kB / 0.5573 GB, free: 4.168 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.3466, allocations: 2.562 kB / 0.5573 GB, free: 4.168 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005805/0.3472, allocations: 331 kB / 0.5577 GB, free: 3.988 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.3472, allocations: 10.34 kB / 0.5577 GB, free: 3.988 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3472, allocations: 8.156 kB / 0.5577 GB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.3472, allocations: 6.75 kB / 0.5577 GB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003123/0.3475, allocations: 75.09 kB / 0.5577 GB, free: 3.934 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.63e-05/0.3475, allocations: 11.94 kB / 0.5578 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.3477, allocations: 15.98 kB / 0.5578 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.557e-05/0.3478, allocations: 16 kB / 0.5578 GB, free: 3.891 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.0002141/0.348, allocations: 173.7 kB / 0.558 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.419e-05/0.3481, allocations: 35.75 kB / 0.558 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004239/0.3485, allocations: 204.6 kB / 0.5582 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.3485, allocations: 4 kB / 0.5582 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3485, allocations: 0 / 0.5582 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.3485, allocations: 3.938 kB / 0.5582 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.3496, allocations: 0.5918 MB / 0.5588 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3496, allocations: 0 / 0.5588 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.3498, allocations: 43.95 kB / 0.5588 GB, free: 2.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.3498, allocations: 4 kB / 0.5588 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.3498, allocations: 4 kB / 0.5588 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.474e-06/0.3498, allocations: 7.984 kB / 0.5588 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3498, allocations: 0 / 0.5588 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006191/0.3504, allocations: 456.1 kB / 0.5593 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.555e-05/0.3505, allocations: 27.81 kB / 0.5593 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.352e-05/0.3505, allocations: 4 kB / 0.5593 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000184/0.3507, allocations: 4 kB / 0.5593 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.898e-05/0.3508, allocations: 20.02 kB / 0.5593 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.3508, allocations: 8 kB / 0.5593 GB, free: 2.223 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002344/0.351, allocations: 219 kB / 0.5595 GB, free: 2.008 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.351, allocations: 4 kB / 0.5595 GB, free: 2.004 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004267/0.3515, allocations: 75.98 kB / 0.5596 GB, free: 1.93 MB / 398.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.0009534/0.3524, allocations: 0.9804 MB / 0.5606 GB, free: 0.918 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000444/0.3529, allocations: 186.9 kB / 0.5607 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.3529, allocations: 1.125 kB / 0.5607 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001662/0.353, allocations: 72.03 kB / 0.5608 GB, free: 0.668 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006612/0.3537, allocations: 97.3 kB / 0.5609 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004841/0.3585, allocations: 3.43 MB / 0.5643 GB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004723/0.359, allocations: 0.8146 MB / 0.5651 GB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000195/0.3592, allocations: 51.25 kB / 0.5651 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.3594, allocations: 123.4 kB / 0.5652 GB, free: 11.93 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3594, allocations: 0 / 0.5652 GB, free: 11.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03846/0.3978, allocations: 7.398 MB / 0.5724 GB, free: 4.703 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.34, allocations: 8.438 kB / 0.5725 GB, free: 4.695 MB / 414.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.csv failed! Error: Could not read variable efficiency.eta in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.csv. Warning: Get data of variable efficiency.eta from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.csv failed! Error: Could not read variable machine.motor.tau_el in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.csv. Warning: Get data of variable machine.motor.tau_el from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.csv failed! Error: Could not read variable machine.motor.w_el in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.csv. Warning: Get data of variable machine.motor.w_el from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.2344215789999]