Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.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.001332/0.001332, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001432/0.001432, allocations: 212 kB / 23.74 MB, free: 4.656 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.498/1.498, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.1924/0.1924, allocations: 38.52 MB / 352.4 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.AC3ph.Elementary.Load,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Load",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Load,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Load",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.002051/0.002051, allocations: 71.91 kB / 492.5 MB, free: 4.914 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.319/0.3211, allocations: 62.48 MB / 0.542 GB, free: 468 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Load): time 0.006666/0.3278, allocations: 4.645 MB / 0.5465 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003107/0.3309, allocations: 1.586 MB / 0.5481 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002371/0.3311, allocations: 19.75 kB / 0.5481 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009075/0.332, allocations: 298.1 kB / 0.5484 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006662/0.3327, allocations: 268.9 kB / 0.5487 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00084/0.3335, allocations: 271.7 kB / 0.5489 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000829/0.3343, allocations: 0.6351 MB / 0.5495 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004255/0.3348, allocations: 254.7 kB / 0.5498 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004483/0.3352, allocations: 293.3 kB / 0.5501 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006335/0.3359, allocations: 422.4 kB / 0.5505 GB, free: 9.977 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.864e-05/0.3359, allocations: 41.88 kB / 0.5505 GB, free: 9.977 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000351/0.3363, allocations: 171.3 kB / 0.5507 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002519/0.3365, allocations: 243 kB / 0.5509 GB, free: 9.754 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003011/0.3368, allocations: 275.5 kB / 0.5512 GB, free: 9.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008313/0.3377, allocations: 0.67 MB / 0.5518 GB, free: 9.129 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3377, allocations: 4 kB / 0.5518 GB, free: 9.125 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3377, allocations: 1.094 kB / 0.5518 GB, free: 9.125 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.3377, allocations: 0 / 0.5518 GB, free: 9.125 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002019/0.3397, allocations: 0.8257 MB / 0.5526 GB, free: 8.492 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.3397, allocations: 14.14 kB / 0.5526 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001189/0.3399, allocations: 90.67 kB / 0.5527 GB, free: 8.406 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007245/0.3406, allocations: 122.3 kB / 0.5528 GB, free: 8.352 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.3417, allocations: 438.5 kB / 0.5533 GB, free: 8.035 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.3417, allocations: 30.22 kB / 0.5533 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001567/0.3419, allocations: 58.42 kB / 0.5533 GB, free: 7.996 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001067/0.3429, allocations: 0.6827 MB / 0.554 GB, free: 7.504 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.343, allocations: 2.375 kB / 0.554 GB, free: 7.504 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.403e-05/0.343, allocations: 20.92 kB / 0.554 GB, free: 7.488 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001198/0.3431, allocations: 36.86 kB / 0.5541 GB, free: 7.477 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009196/0.344, allocations: 0.5289 MB / 0.5546 GB, free: 7.227 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004621/0.3487, allocations: 3.04 MB / 0.5575 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006292/0.3493, allocations: 305.3 kB / 0.5578 GB, free: 4.023 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002662/0.3496, allocations: 161.7 kB / 0.558 GB, free: 3.859 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.022e-05/0.3496, allocations: 7.984 kB / 0.558 GB, free: 3.852 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.3496, allocations: 46.94 kB / 0.558 GB, free: 3.797 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.924e-06/0.3496, allocations: 0 / 0.558 GB, free: 3.797 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002152/0.3518, allocations: 1.152 MB / 0.5592 GB, free: 2.609 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.411e-05/0.3519, allocations: 81.11 kB / 0.5592 GB, free: 2.512 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004526/0.3523, allocations: 393.5 kB / 0.5596 GB, free: 2.125 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.3524, allocations: 33.7 kB / 0.5597 GB, free: 2.086 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002201/0.3526, allocations: 303.9 kB / 0.5599 GB, free: 1.785 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.3527, allocations: 130.9 kB / 0.5601 GB, free: 1.656 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.3528, allocations: 102.3 kB / 0.5602 GB, free: 1.551 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.353, allocations: 358.7 kB / 0.5605 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003242/0.3534, allocations: 193.2 kB / 0.5607 GB, free: 1.004 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005068/0.3539, allocations: 378.5 kB / 0.5611 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008415/0.3547, allocations: 0.6009 MB / 0.5616 GB, free: 15.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.3547, allocations: 4 kB / 0.5616 GB, free: 15.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002005/0.3567, allocations: 0.8144 MB / 0.5624 GB, free: 15.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.3567, allocations: 12.61 kB / 0.5625 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.3567, allocations: 8 kB / 0.5625 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001339/0.3581, allocations: 265.4 kB / 0.5627 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006639/0.3588, allocations: 139.8 kB / 0.5628 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005291/0.364, allocations: 3.846 MB / 0.5666 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004449/0.3645, allocations: 27.98 kB / 0.5666 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.843e-05/0.3645, allocations: 27.98 kB / 0.5667 GB, free: 10.46 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003263/0.3649, allocations: 217.6 kB / 0.5669 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.912e-05/0.365, allocations: 43.77 kB / 0.5669 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000861/0.3658, allocations: 481 kB / 0.5674 GB, free: 9.719 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.3658, allocations: 19.94 kB / 0.5674 GB, free: 9.699 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.3658, allocations: 0 / 0.5674 GB, free: 9.699 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/0.3658, allocations: 7.969 kB / 0.5674 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00162/0.3675, allocations: 0.9906 MB / 0.5684 GB, free: 8.648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.487e-06/0.3675, allocations: 11.92 kB / 0.5684 GB, free: 8.637 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004826/0.3679, allocations: 79.89 kB / 0.5684 GB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.3679, allocations: 64 / 0.5684 GB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.622e-05/0.368, allocations: 23.98 kB / 0.5685 GB, free: 8.535 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.368, allocations: 0 / 0.5685 GB, free: 8.535 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.686e-06/0.368, allocations: 4 kB / 0.5685 GB, free: 8.531 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.3691, allocations: 0.7356 MB / 0.5692 GB, free: 7.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.327e-05/0.3692, allocations: 47.69 kB / 0.5692 GB, free: 7.723 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.965e-05/0.3692, allocations: 8.062 kB / 0.5692 GB, free: 7.715 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002735/0.3695, allocations: 19.98 kB / 0.5693 GB, free: 7.695 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.119e-05/0.3696, allocations: 23.89 kB / 0.5693 GB, free: 7.672 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.241e-05/0.3696, allocations: 16.17 kB / 0.5693 GB, free: 7.656 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003149/0.3699, allocations: 271.1 kB / 0.5696 GB, free: 7.395 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3699, allocations: 0 / 0.5696 GB, free: 7.395 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000573/0.3705, allocations: 120 kB / 0.5697 GB, free: 7.277 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (load.psi[1],load.psi[2],load.psi[3],load.Z[1],load.Z[2]) * 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 (38): * Single equations (assignments): 37 * 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.001368/0.3718, allocations: 1.296 MB / 0.5709 GB, free: 5.941 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001599/0.3734, allocations: 0.7749 MB / 0.5717 GB, free: 5.141 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3735, allocations: 448 / 0.5717 GB, free: 5.141 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003208/0.3738, allocations: 188.7 kB / 0.5719 GB, free: 4.957 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005878/0.3744, allocations: 84.09 kB / 0.572 GB, free: 4.875 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009642/0.384, allocations: 5.326 MB / 0.5772 GB, free: 15.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006119/0.3846, allocations: 0.8976 MB / 0.578 GB, free: 14.34 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003804/0.385, allocations: 135.3 kB / 0.5782 GB, free: 14.21 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002941/0.3853, allocations: 167.4 kB / 0.5783 GB, free: 14.04 MB / 430.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3853, allocations: 4 kB / 0.5783 GB, free: 14.04 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04745/0.4327, allocations: 11.15 MB / 0.5892 GB, free: 3.027 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.62/14.05, allocations: 2.75 kB / 0.5892 GB, free: 3.027 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Load.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Load.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.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.Elementary.Load_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv failed! Error: Could not read variable meter.p[2] in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv. Warning: Get data of variable meter.p[2] from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv failed! Error: Could not read variable meter.p[3] in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv. Warning: Get data of variable meter.p[3] from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv failed! Error: Could not read variable meter.v[1] in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv. Warning: Get data of variable meter.v[1] from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv failed! Error: Could not read variable meter.v[2] in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv. Warning: Get data of variable meter.v[2] from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv failed! Error: Could not read variable meter.v[3] in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv. Warning: Get data of variable meter.v[3] from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.13533512200229]