Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.001811/0.001811, 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.00229/0.00229, allocations: 210 kB / 23.73 MB, free: 4.387 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.502/1.502, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.2234/0.2234, allocations: 38.55 MB / 352.5 MB, free: 12.3 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.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.002106/0.002106, allocations: 70.41 kB / 492.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2963, allocations: 62.46 MB / 0.5419 GB, free: 232 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005825/0.3021, allocations: 4.013 MB / 0.5459 GB, free: 13.15 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.3037, allocations: 0.8725 MB / 0.5467 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.3039, allocations: 14.66 kB / 0.5467 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001936/0.3041, allocations: 51.78 kB / 0.5468 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005028/0.3046, allocations: 182.7 kB / 0.547 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002087/0.3048, allocations: 92.27 kB / 0.547 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004508/0.3052, allocations: 403 kB / 0.5474 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.3054, allocations: 74.5 kB / 0.5475 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003258/0.3057, allocations: 189.2 kB / 0.5477 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003223/0.3061, allocations: 190.8 kB / 0.5479 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.244e-05/0.3061, allocations: 19.22 kB / 0.5479 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.483e-05/0.3062, allocations: 19.5 kB / 0.5479 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.3063, allocations: 85.11 kB / 0.548 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.3064, allocations: 114.9 kB / 0.5481 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003811/0.3068, allocations: 296.5 kB / 0.5484 GB, free: 11.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.3068, allocations: 4 kB / 0.5484 GB, free: 11.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.766e-06/0.3068, allocations: 0 / 0.5484 GB, free: 11.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.3068, allocations: 0 / 0.5484 GB, free: 11.39 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001025/0.3078, allocations: 0.5292 MB / 0.5489 GB, free: 10.94 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.3079, allocations: 14.02 kB / 0.5489 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.957e-05/0.308, allocations: 61.59 kB / 0.549 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.669e-05/0.308, allocations: 32 kB / 0.549 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00055/0.3086, allocations: 275.1 kB / 0.5493 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/0.3086, allocations: 25.17 kB / 0.5493 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.545e-05/0.3087, allocations: 22.44 kB / 0.5493 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004548/0.3091, allocations: 287.2 kB / 0.5496 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.3091, allocations: 1.219 kB / 0.5496 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.654e-05/0.3092, allocations: 14.09 kB / 0.5496 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.3092, allocations: 9.969 kB / 0.5496 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003004/0.3095, allocations: 180.8 kB / 0.5498 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001498/0.311, allocations: 1.146 MB / 0.5509 GB, free: 9.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003174/0.3113, allocations: 101.4 kB / 0.551 GB, free: 9.152 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.097e-05/0.3114, allocations: 47.58 kB / 0.551 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.3114, allocations: 1.344 kB / 0.551 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.3114, allocations: 40.31 kB / 0.5511 GB, free: 9.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.3114, allocations: 0 / 0.5511 GB, free: 9.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008669/0.3123, allocations: 413.2 kB / 0.5515 GB, free: 8.754 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.63e-05/0.3123, allocations: 82.5 kB / 0.5515 GB, free: 8.656 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002566/0.3126, allocations: 256.1 kB / 0.5518 GB, free: 8.477 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.3126, allocations: 26.83 kB / 0.5518 GB, free: 8.445 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.3128, allocations: 200.6 kB / 0.552 GB, free: 8.262 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.976e-05/0.3128, allocations: 45.88 kB / 0.5521 GB, free: 8.223 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.1e-05/0.3129, allocations: 39.98 kB / 0.5521 GB, free: 8.191 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.313, allocations: 336.6 kB / 0.5524 GB, free: 7.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.713e-05/0.3131, allocations: 34.86 kB / 0.5524 GB, free: 7.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.3133, allocations: 131.7 kB / 0.5526 GB, free: 7.699 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.3135, allocations: 192.4 kB / 0.5528 GB, free: 7.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3135, allocations: 1.156 kB / 0.5528 GB, free: 7.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003319/0.3139, allocations: 214.1 kB / 0.553 GB, free: 7.395 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.3139, allocations: 6.125 kB / 0.553 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.3139, allocations: 7.547 kB / 0.553 GB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.3139, allocations: 4.344 kB / 0.553 GB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001827/0.3141, allocations: 46.7 kB / 0.553 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.3141, allocations: 4.906 kB / 0.553 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/0.3142, allocations: 11.91 kB / 0.553 GB, free: 7.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.3143, allocations: 21.14 kB / 0.5531 GB, free: 7.359 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (24): * Single equations (assignments): 24 * 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.0001648/0.3144, allocations: 148.6 kB / 0.5532 GB, free: 7.223 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.078e-05/0.3145, allocations: 21.86 kB / 0.5532 GB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002932/0.3148, allocations: 134.7 kB / 0.5533 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3148, allocations: 1.438 kB / 0.5533 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3148, allocations: 5.406 kB / 0.5534 GB, free: 7.105 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.3148, allocations: 3.938 kB / 0.5534 GB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006464/0.3154, allocations: 446.2 kB / 0.5538 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3154, allocations: 1.188 kB / 0.5538 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.3156, allocations: 25.8 kB / 0.5538 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.3156, allocations: 2.094 kB / 0.5538 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.3156, allocations: 4.938 kB / 0.5538 GB, free: 6.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.3156, allocations: 1.156 kB / 0.5538 GB, free: 6.703 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3156, allocations: 1.125 kB / 0.5538 GB, free: 6.703 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003696/0.316, allocations: 287.5 kB / 0.5541 GB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.12e-05/0.316, allocations: 18.11 kB / 0.5541 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.784e-05/0.316, allocations: 14.05 kB / 0.5541 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.3161, allocations: 5.078 kB / 0.5541 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.379e-05/0.3162, allocations: 12.14 kB / 0.5541 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.3162, allocations: 11.38 kB / 0.5541 GB, free: 6.438 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001612/0.3163, allocations: 170.6 kB / 0.5543 GB, free: 6.316 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3163, allocations: 0 / 0.5543 GB, free: 6.316 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003267/0.3167, allocations: 43.38 kB / 0.5544 GB, free: 6.312 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * 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.0006506/0.3173, allocations: 0.8066 MB / 0.5551 GB, free: 5.566 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000245/0.3176, allocations: 120.3 kB / 0.5553 GB, free: 5.508 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3176, allocations: 5.469 kB / 0.5553 GB, free: 5.504 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.658e-05/0.3176, allocations: 39.77 kB / 0.5553 GB, free: 5.488 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004784/0.3181, allocations: 54.81 kB / 0.5554 GB, free: 5.465 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003179/0.3213, allocations: 2.456 MB / 0.5577 GB, free: 3.363 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001856/0.3215, allocations: 162.8 kB / 0.5579 GB, free: 3.184 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001458/0.3216, allocations: 34.27 kB / 0.5579 GB, free: 3.152 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.3218, allocations: 83.41 kB / 0.558 GB, free: 3.07 MB / 398.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3218, allocations: 4 kB / 0.558 GB, free: 3.066 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03415/0.356, allocations: 5.307 MB / 0.5632 GB, free: 13.92 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.84, allocations: 0 / 0.5632 GB, free: 13.92 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.713037258014083]