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.00198/0.00198, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002155/0.002155, allocations: 210.3 kB / 23.72 MB, free: 4.391 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2036/0.2036, allocations: 38.55 MB / 352.5 MB, free: 12.32 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.002111/0.002111, allocations: 63.91 kB / 492.5 MB, free: 4.715 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3346, allocations: 62.48 MB / 0.5419 GB, free: 244 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.006795/0.3414, allocations: 4.688 MB / 0.5465 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002529/0.344, allocations: 1.386 MB / 0.5479 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003181/0.3443, allocations: 22.56 kB / 0.5479 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004221/0.3447, allocations: 110.7 kB / 0.548 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008196/0.3455, allocations: 263.6 kB / 0.5483 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003766/0.3459, allocations: 144.3 kB / 0.5484 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008535/0.3468, allocations: 0.5845 MB / 0.549 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004355/0.3472, allocations: 286 kB / 0.5492 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004084/0.3476, allocations: 256.2 kB / 0.5495 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003611/0.348, allocations: 229.9 kB / 0.5497 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.105e-05/0.348, allocations: 39 kB / 0.5497 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.746e-05/0.3481, allocations: 40.22 kB / 0.5498 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.3482, allocations: 125.6 kB / 0.5499 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002073/0.3485, allocations: 181.2 kB / 0.5501 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000651/0.3491, allocations: 0.5082 MB / 0.5506 GB, free: 9.789 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3491, allocations: 0 / 0.5506 GB, free: 9.789 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3491, allocations: 1.125 kB / 0.5506 GB, free: 9.789 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.3491, allocations: 4 kB / 0.5506 GB, free: 9.785 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.001364/0.3505, allocations: 0.6425 MB / 0.5512 GB, free: 9.262 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.3505, allocations: 13.02 kB / 0.5512 GB, free: 9.258 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.353e-05/0.3506, allocations: 71.03 kB / 0.5513 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.759e-05/0.3507, allocations: 58.7 kB / 0.5513 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007013/0.3514, allocations: 355 kB / 0.5517 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.3515, allocations: 81.53 kB / 0.5517 GB, free: 8.789 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.805e-05/0.3516, allocations: 34.56 kB / 0.5518 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007109/0.3523, allocations: 435.8 kB / 0.5522 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.3523, allocations: 6.219 kB / 0.5522 GB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.993e-05/0.3524, allocations: 15.19 kB / 0.5522 GB, free: 8.457 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.3524, allocations: 9.469 kB / 0.5522 GB, free: 8.457 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005445/0.3529, allocations: 274 kB / 0.5525 GB, free: 8.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002247/0.3552, allocations: 1.688 MB / 0.5541 GB, free: 6.801 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003536/0.3555, allocations: 165.9 kB / 0.5543 GB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.3557, allocations: 73.77 kB / 0.5544 GB, free: 6.621 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/0.3557, allocations: 7.156 kB / 0.5544 GB, free: 6.617 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.3558, allocations: 41.72 kB / 0.5544 GB, free: 6.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.883e-06/0.3558, allocations: 0 / 0.5544 GB, free: 6.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001365/0.3571, allocations: 0.6464 MB / 0.555 GB, free: 6.109 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/0.3572, allocations: 106.5 kB / 0.5551 GB, free: 5.984 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003453/0.3575, allocations: 322.4 kB / 0.5555 GB, free: 5.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.3576, allocations: 30.8 kB / 0.5555 GB, free: 5.734 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.3578, allocations: 251.8 kB / 0.5557 GB, free: 5.508 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.751e-05/0.3578, allocations: 64.56 kB / 0.5558 GB, free: 5.453 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.3579, allocations: 73.06 kB / 0.5559 GB, free: 5.398 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.3581, allocations: 342.5 kB / 0.5562 GB, free: 5.062 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/0.3583, allocations: 70.52 kB / 0.5562 GB, free: 5.031 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/0.3585, allocations: 200.6 kB / 0.5564 GB, free: 4.832 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004727/0.359, allocations: 294.9 kB / 0.5567 GB, free: 4.582 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.359, allocations: 9.156 kB / 0.5567 GB, free: 4.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005799/0.3596, allocations: 332.1 kB / 0.557 GB, free: 4.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.3596, allocations: 12.09 kB / 0.5571 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.3596, allocations: 4 kB / 0.5571 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.3596, allocations: 8 kB / 0.5571 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003088/0.3599, allocations: 79.89 kB / 0.5571 GB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.36, allocations: 4 kB / 0.5571 GB, free: 4.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.3601, allocations: 15.94 kB / 0.5572 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.807e-05/0.3602, allocations: 19.98 kB / 0.5572 GB, free: 4.18 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.0002099/0.3604, allocations: 181.7 kB / 0.5574 GB, free: 3.992 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.741e-05/0.3605, allocations: 39.75 kB / 0.5574 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004234/0.3609, allocations: 192.6 kB / 0.5576 GB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.3609, allocations: 4 kB / 0.5576 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3609, allocations: 0 / 0.5576 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.3609, allocations: 7.984 kB / 0.5576 GB, free: 3.742 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.3619, allocations: 0.5645 MB / 0.5581 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3619, allocations: 0 / 0.5581 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002537/0.3622, allocations: 35.98 kB / 0.5582 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3622, allocations: 4.031 kB / 0.5582 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.3622, allocations: 8 kB / 0.5582 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.3622, allocations: 7.984 kB / 0.5582 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3622, allocations: 7.938 kB / 0.5582 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000637/0.3629, allocations: 455 kB / 0.5586 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.667e-05/0.3629, allocations: 27.77 kB / 0.5587 GB, free: 2.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.866e-05/0.363, allocations: 4 kB / 0.5587 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.3632, allocations: 4 kB / 0.5587 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.544e-05/0.3632, allocations: 19.97 kB / 0.5587 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.3633, allocations: 8 kB / 0.5587 GB, free: 2.535 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002319/0.3635, allocations: 219 kB / 0.5589 GB, free: 2.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3635, allocations: 3.938 kB / 0.5589 GB, free: 2.316 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004204/0.3639, allocations: 72 kB / 0.559 GB, free: 2.246 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.0009322/0.3648, allocations: 0.9846 MB / 0.5599 GB, free: 1.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004344/0.3653, allocations: 188 kB / 0.5601 GB, free: 1.047 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3653, allocations: 0 / 0.5601 GB, free: 1.047 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001717/0.3654, allocations: 75.84 kB / 0.5602 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006881/0.3661, allocations: 102.2 kB / 0.5603 GB, free: 0.875 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004626/0.3708, allocations: 3.422 MB / 0.5636 GB, free: 13.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002336/0.371, allocations: 214.5 kB / 0.5638 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001958/0.3712, allocations: 51.25 kB / 0.5639 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/0.3714, allocations: 123.4 kB / 0.564 GB, free: 12.85 MB / 414.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3714, allocations: 0 / 0.564 GB, free: 12.85 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03818/0.4096, allocations: 7.899 MB / 0.5717 GB, free: 5.152 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.78, allocations: 6.859 kB / 0.5717 GB, free: 5.148 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.691596216056496]