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.001337/0.001337, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001502/0.001502, allocations: 214.1 kB / 24.52 MB, free: 3.941 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.475/1.475, allocations: 230.6 MB / 258.3 MB, free: 7.809 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.1836/0.1836, allocations: 38.55 MB / 353.2 MB, free: 12.33 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="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.00203/0.00203, allocations: 67.91 kB / 493.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.294, allocations: 62.46 MB / 0.5427 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.006457/0.3005, allocations: 4.694 MB / 0.5473 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002237/0.3027, allocations: 1.387 MB / 0.5486 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001984/0.3029, allocations: 23.38 kB / 0.5487 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003397/0.3032, allocations: 103.1 kB / 0.5488 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006281/0.3039, allocations: 266.5 kB / 0.549 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003219/0.3042, allocations: 140.5 kB / 0.5491 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007497/0.3049, allocations: 0.5838 MB / 0.5497 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004252/0.3054, allocations: 298.5 kB / 0.55 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003662/0.3057, allocations: 255 kB / 0.5502 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003671/0.3061, allocations: 239.9 kB / 0.5505 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.702e-05/0.3061, allocations: 38.81 kB / 0.5505 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.746e-05/0.3062, allocations: 43.19 kB / 0.5505 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.3064, allocations: 126.8 kB / 0.5507 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002079/0.3066, allocations: 180.1 kB / 0.5508 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000584/0.3072, allocations: 0.508 MB / 0.5513 GB, free: 9.766 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3072, allocations: 5.188 kB / 0.5513 GB, free: 9.762 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3072, allocations: 0 / 0.5513 GB, free: 9.762 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.3072, allocations: 0 / 0.5513 GB, free: 9.762 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.001234/0.3084, allocations: 0.6498 MB / 0.552 GB, free: 9.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.3085, allocations: 14.42 kB / 0.552 GB, free: 9.227 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.122e-05/0.3085, allocations: 9.844 kB / 0.552 GB, free: 9.227 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.985e-05/0.3086, allocations: 70.16 kB / 0.5521 GB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.276e-05/0.3086, allocations: 51.52 kB / 0.5521 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006317/0.3093, allocations: 358.4 kB / 0.5525 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.3094, allocations: 81.25 kB / 0.5525 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.678e-05/0.3095, allocations: 35.41 kB / 0.5526 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000732/0.3102, allocations: 431.5 kB / 0.553 GB, free: 8.441 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.3102, allocations: 9.281 kB / 0.553 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.53e-05/0.3102, allocations: 12.03 kB / 0.553 GB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.3103, allocations: 8.562 kB / 0.553 GB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000519/0.3108, allocations: 276 kB / 0.5533 GB, free: 8.289 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.3129, allocations: 1.696 MB / 0.5549 GB, free: 6.762 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003516/0.3133, allocations: 168.9 kB / 0.5551 GB, free: 6.633 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.3135, allocations: 67.72 kB / 0.5552 GB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.3135, allocations: 2.875 kB / 0.5552 GB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.321e-05/0.3135, allocations: 41.11 kB / 0.5552 GB, free: 6.539 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.643e-06/0.3135, allocations: 0 / 0.5552 GB, free: 6.539 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001332/0.3148, allocations: 0.651 MB / 0.5558 GB, free: 6.074 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/0.3149, allocations: 109.1 kB / 0.5559 GB, free: 5.945 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003404/0.3152, allocations: 309.6 kB / 0.5562 GB, free: 5.746 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.3153, allocations: 30.83 kB / 0.5563 GB, free: 5.711 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001824/0.3154, allocations: 247.7 kB / 0.5565 GB, free: 5.488 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.895e-05/0.3155, allocations: 80.81 kB / 0.5566 GB, free: 5.418 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.838e-05/0.3156, allocations: 61.97 kB / 0.5566 GB, free: 5.375 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3158, allocations: 341.5 kB / 0.557 GB, free: 5.039 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.316, allocations: 71.03 kB / 0.557 GB, free: 5.008 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/0.3162, allocations: 208.5 kB / 0.5572 GB, free: 4.801 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004528/0.3167, allocations: 293.5 kB / 0.5575 GB, free: 4.551 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.3167, allocations: 5.188 kB / 0.5575 GB, free: 4.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006015/0.3173, allocations: 330.1 kB / 0.5578 GB, free: 4.297 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.3173, allocations: 4 kB / 0.5578 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.3173, allocations: 8 kB / 0.5578 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.3173, allocations: 4 kB / 0.5578 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003214/0.3177, allocations: 84.34 kB / 0.5579 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.3177, allocations: 7.984 kB / 0.5579 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001866/0.3179, allocations: 19.94 kB / 0.5579 GB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.569e-05/0.3179, allocations: 16 kB / 0.558 GB, free: 4.156 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.0001995/0.3181, allocations: 185.6 kB / 0.5581 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.639e-05/0.3182, allocations: 35.75 kB / 0.5582 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004167/0.3186, allocations: 192.6 kB / 0.5584 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3186, allocations: 0 / 0.5584 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3186, allocations: 4 kB / 0.5584 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3186, allocations: 4 kB / 0.5584 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009536/0.3195, allocations: 0.5684 MB / 0.5589 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3195, allocations: 0 / 0.5589 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002512/0.3198, allocations: 43.91 kB / 0.559 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/0.3198, allocations: 7.984 kB / 0.559 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.3198, allocations: 4 kB / 0.559 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.3198, allocations: 4 kB / 0.559 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3198, allocations: 0 / 0.559 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006562/0.3205, allocations: 458.9 kB / 0.5594 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.296e-05/0.3205, allocations: 27.81 kB / 0.5594 GB, free: 2.547 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.834e-05/0.3206, allocations: 8.031 kB / 0.5594 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.3208, allocations: 4 kB / 0.5595 GB, free: 2.535 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.036e-05/0.3208, allocations: 19.97 kB / 0.5595 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.3209, allocations: 7.938 kB / 0.5595 GB, free: 2.508 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000232/0.3211, allocations: 219.1 kB / 0.5597 GB, free: 2.293 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3211, allocations: 0 / 0.5597 GB, free: 2.293 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004318/0.3215, allocations: 68 kB / 0.5598 GB, free: 2.227 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.0009222/0.3224, allocations: 0.9808 MB / 0.5607 GB, free: 1.215 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004353/0.3229, allocations: 191.7 kB / 0.5609 GB, free: 1.031 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3229, allocations: 0 / 0.5609 GB, free: 1.031 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001815/0.3231, allocations: 88.02 kB / 0.561 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006793/0.3237, allocations: 93.12 kB / 0.5611 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004609/0.3284, allocations: 3.443 MB / 0.5644 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.3286, allocations: 214.5 kB / 0.5646 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001806/0.3288, allocations: 47.25 kB / 0.5647 GB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001846/0.329, allocations: 123.4 kB / 0.5648 GB, free: 12.82 MB / 414.1 MB Notification: Performance of SimCode: time 8.21e-07/0.329, allocations: 0 / 0.5648 GB, free: 12.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03197/0.3609, allocations: 7.617 MB / 0.5722 GB, free: 5.426 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.28, allocations: 11.94 kB / 0.5722 GB, free: 5.414 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: 15.274659521994181]