Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.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.001938/0.001938, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.00186/0.00186, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.47/1.47, 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.1923/0.1923, allocations: 38.55 MB / 352.5 MB, free: 12.29 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.AC3ph.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",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.002233/0.002233, allocations: 75.88 kB / 492.5 MB, free: 4.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2989, allocations: 62.46 MB / 0.5419 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer): time 0.00734/0.3063, allocations: 4.596 MB / 0.5464 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002713/0.309, allocations: 1.288 MB / 0.5477 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000323/0.3093, allocations: 16.78 kB / 0.5477 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001337/0.3106, allocations: 394.8 kB / 0.5481 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007659/0.3114, allocations: 250.6 kB / 0.5483 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000603/0.312, allocations: 181.2 kB / 0.5485 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000745/0.3128, allocations: 0.5515 MB / 0.549 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005559/0.3133, allocations: 257.7 kB / 0.5493 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005763/0.3139, allocations: 267.2 kB / 0.5495 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005574/0.3144, allocations: 277.7 kB / 0.5498 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.814e-05/0.3145, allocations: 31.38 kB / 0.5498 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003875/0.3149, allocations: 133 kB / 0.5499 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002363/0.3151, allocations: 186.6 kB / 0.5501 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003115/0.3155, allocations: 182.8 kB / 0.5503 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007446/0.3162, allocations: 0.5349 MB / 0.5508 GB, free: 9.664 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.3162, allocations: 4 kB / 0.5508 GB, free: 9.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3162, allocations: 0 / 0.5508 GB, free: 9.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.778e-05/0.3162, allocations: 0 / 0.5508 GB, free: 9.66 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001359/0.3176, allocations: 0.6527 MB / 0.5515 GB, free: 9.121 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.3176, allocations: 16.89 kB / 0.5515 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001057/0.3177, allocations: 76.42 kB / 0.5516 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007153/0.3184, allocations: 89.03 kB / 0.5516 GB, free: 9 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008372/0.3193, allocations: 350.3 kB / 0.552 GB, free: 8.723 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.961e-05/0.3193, allocations: 26.53 kB / 0.552 GB, free: 8.711 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001402/0.3195, allocations: 52.09 kB / 0.552 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000856/0.3203, allocations: 475.2 kB / 0.5525 GB, free: 8.387 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.3203, allocations: 1.062 kB / 0.5525 GB, free: 8.387 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.07e-05/0.3204, allocations: 19.88 kB / 0.5525 GB, free: 8.371 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001089/0.3205, allocations: 25.52 kB / 0.5525 GB, free: 8.367 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006073/0.3211, allocations: 351.3 kB / 0.5529 GB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002664/0.3237, allocations: 1.479 MB / 0.5543 GB, free: 7.004 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003619/0.3241, allocations: 165.8 kB / 0.5545 GB, free: 6.895 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001786/0.3243, allocations: 104.9 kB / 0.5546 GB, free: 6.832 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.3243, allocations: 7.281 kB / 0.5546 GB, free: 6.828 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001072/0.3244, allocations: 40.62 kB / 0.5546 GB, free: 6.781 MB / 398.1 MB Notification: Performance of pre-optimization done (n=19): time 1.623e-06/0.3244, allocations: 0 / 0.5546 GB, free: 6.781 MB / 398.1 MB Notification: Performance of matching and sorting (n=20): time 0.001397/0.3258, allocations: 0.713 MB / 0.5553 GB, free: 6.301 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.546e-05/0.3259, allocations: 87.53 kB / 0.5554 GB, free: 6.199 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000353/0.3262, allocations: 312.8 kB / 0.5557 GB, free: 5.883 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.3263, allocations: 25.7 kB / 0.5557 GB, free: 5.852 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.3265, allocations: 264 kB / 0.556 GB, free: 5.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.3266, allocations: 79.38 kB / 0.5561 GB, free: 5.512 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.3267, allocations: 61.69 kB / 0.5561 GB, free: 5.445 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.3268, allocations: 338.8 kB / 0.5564 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.327, allocations: 95.94 kB / 0.5565 GB, free: 5.012 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002546/0.3273, allocations: 192.8 kB / 0.5567 GB, free: 4.777 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004758/0.3277, allocations: 339.2 kB / 0.557 GB, free: 4.402 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3278, allocations: 4 kB / 0.557 GB, free: 4.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009798/0.3287, allocations: 413.7 kB / 0.5574 GB, free: 3.984 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.3287, allocations: 8.438 kB / 0.5574 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005598/0.3293, allocations: 270.5 kB / 0.5577 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003461/0.3297, allocations: 76.78 kB / 0.5578 GB, free: 3.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002525/0.3299, allocations: 67.84 kB / 0.5578 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001796/0.3317, allocations: 1.612 MB / 0.5594 GB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.3319, allocations: 8 kB / 0.5594 GB, free: 1.828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.118e-05/0.3319, allocations: 19.98 kB / 0.5594 GB, free: 1.809 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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000226/0.3322, allocations: 189.7 kB / 0.5596 GB, free: 1.613 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.577e-05/0.3322, allocations: 31.77 kB / 0.5597 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004626/0.3327, allocations: 270.8 kB / 0.5599 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3327, allocations: 4 kB / 0.5599 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.3327, allocations: 0 / 0.5599 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3327, allocations: 0 / 0.5599 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001321/0.334, allocations: 0.717 MB / 0.5606 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.334, allocations: 0 / 0.5606 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00028/0.3343, allocations: 51.91 kB / 0.5607 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.3343, allocations: 0 / 0.5607 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/0.3343, allocations: 11.94 kB / 0.5607 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.3343, allocations: 4 kB / 0.5607 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3343, allocations: 0 / 0.5607 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00061/0.3349, allocations: 449.6 kB / 0.5611 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.948e-05/0.335, allocations: 43.64 kB / 0.5612 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.438e-05/0.3351, allocations: 8.031 kB / 0.5612 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.3352, allocations: 8 kB / 0.5612 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.027e-05/0.3353, allocations: 23.84 kB / 0.5612 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.571e-05/0.3353, allocations: 8 kB / 0.5612 GB, free: 15.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002309/0.3355, allocations: 215.1 kB / 0.5614 GB, free: 15.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3355, allocations: 0 / 0.5614 GB, free: 15.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004346/0.336, allocations: 87.98 kB / 0.5615 GB, free: 15.62 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * 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 (23): * Single equations (assignments): 22 * 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.001074/0.337, allocations: 0.9909 MB / 0.5625 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000674/0.3377, allocations: 362.3 kB / 0.5628 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3377, allocations: 0 / 0.5628 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.3379, allocations: 99.83 kB / 0.5629 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004917/0.3384, allocations: 66.47 kB / 0.563 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00499/0.3434, allocations: 3.532 MB / 0.5664 GB, free: 10.35 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/0.3437, allocations: 249.2 kB / 0.5666 GB, free: 10.08 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002532/0.3439, allocations: 78.89 kB / 0.5667 GB, free: 10 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000213/0.3441, allocations: 135.4 kB / 0.5668 GB, free: 9.871 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3441, allocations: 3.938 kB / 0.5669 GB, free: 9.867 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04437/0.3885, allocations: 7.958 MB / 0.5746 GB, free: 2.074 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.96, allocations: 11.86 kB / 0.5746 GB, free: 2.062 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv failed! Error: Could not read variable sensor.p[1] in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv. Warning: Get data of variable sensor.p[1] from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv failed! Error: Could not read variable sensor.p[2] in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv. Warning: Get data of variable sensor.p[2] from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv failed! Error: Could not read variable sensor.p[3] in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv. Warning: Get data of variable sensor.p[3] from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.915356929413974]