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.001977/0.001977, 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.002226/0.002226, allocations: 218.2 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.455/1.455, allocations: 230.6 MB / 257.5 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.1841/0.1841, allocations: 38.56 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.002193/0.002193, allocations: 63.89 kB / 492.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2992, allocations: 62.46 MB / 0.5419 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.006393/0.3056, allocations: 4.016 MB / 0.5459 GB, free: 13.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001716/0.3073, allocations: 0.8727 MB / 0.5467 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001647/0.3075, allocations: 14.81 kB / 0.5467 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002062/0.3077, allocations: 55.44 kB / 0.5468 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005358/0.3082, allocations: 182.9 kB / 0.547 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002197/0.3084, allocations: 92.3 kB / 0.547 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004648/0.3089, allocations: 399.2 kB / 0.5474 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.3091, allocations: 74.78 kB / 0.5475 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003426/0.3095, allocations: 196.3 kB / 0.5477 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003128/0.3098, allocations: 187 kB / 0.5479 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.22e-05/0.3098, allocations: 19.19 kB / 0.5479 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.56e-05/0.3099, allocations: 19.5 kB / 0.5479 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.31, allocations: 88.47 kB / 0.548 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.3101, allocations: 119.3 kB / 0.5481 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003648/0.3105, allocations: 288.2 kB / 0.5484 GB, free: 11.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.3105, allocations: 3.938 kB / 0.5484 GB, free: 11.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.3105, allocations: 0 / 0.5484 GB, free: 11.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.3105, allocations: 9 kB / 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.0009901/0.3115, allocations: 0.5278 MB / 0.5489 GB, free: 10.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.3115, allocations: 14.48 kB / 0.5489 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.738e-05/0.3116, allocations: 61.38 kB / 0.549 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.079e-05/0.3117, allocations: 31.94 kB / 0.549 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005127/0.3122, allocations: 276 kB / 0.5493 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.3122, allocations: 21.62 kB / 0.5493 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.592e-05/0.3122, allocations: 22.09 kB / 0.5493 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004705/0.3127, allocations: 294.6 kB / 0.5496 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.3127, allocations: 1.406 kB / 0.5496 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/0.3128, allocations: 14.94 kB / 0.5496 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.3128, allocations: 6 kB / 0.5496 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003026/0.3131, allocations: 176.5 kB / 0.5498 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001471/0.3145, allocations: 1.141 MB / 0.5509 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.3148, allocations: 110.2 kB / 0.551 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.628e-05/0.3149, allocations: 42.77 kB / 0.551 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.3149, allocations: 1.094 kB / 0.551 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.133e-05/0.315, allocations: 40.78 kB / 0.5511 GB, free: 9.078 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.315, allocations: 1.219 kB / 0.5511 GB, free: 9.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008121/0.3158, allocations: 411.2 kB / 0.5515 GB, free: 8.762 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.3158, allocations: 79.98 kB / 0.5515 GB, free: 8.668 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000253/0.3161, allocations: 261 kB / 0.5518 GB, free: 8.484 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.3161, allocations: 29.64 kB / 0.5518 GB, free: 8.449 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.3163, allocations: 201.1 kB / 0.552 GB, free: 8.266 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.217e-05/0.3163, allocations: 41.75 kB / 0.5521 GB, free: 8.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.752e-05/0.3164, allocations: 40.61 kB / 0.5521 GB, free: 8.199 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.3166, allocations: 332.4 kB / 0.5524 GB, free: 7.871 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.13e-05/0.3166, allocations: 35.11 kB / 0.5524 GB, free: 7.855 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.3168, allocations: 138.7 kB / 0.5526 GB, free: 7.707 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002363/0.317, allocations: 183.5 kB / 0.5528 GB, free: 7.535 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.317, allocations: 1.875 kB / 0.5528 GB, free: 7.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003152/0.3173, allocations: 212.7 kB / 0.553 GB, free: 7.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.3173, allocations: 6.469 kB / 0.553 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.3174, allocations: 3.125 kB / 0.553 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.221e-05/0.3174, allocations: 5.594 kB / 0.553 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001708/0.3175, allocations: 54.59 kB / 0.553 GB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.3176, allocations: 4.5 kB / 0.553 GB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001209/0.3177, allocations: 12.44 kB / 0.553 GB, free: 7.383 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.706e-05/0.3177, allocations: 11.72 kB / 0.553 GB, free: 7.379 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.000158/0.3179, allocations: 148.9 kB / 0.5532 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.822e-05/0.3179, allocations: 26.41 kB / 0.5532 GB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000252/0.3182, allocations: 138.4 kB / 0.5533 GB, free: 7.121 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3182, allocations: 5.422 kB / 0.5534 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3182, allocations: 1.469 kB / 0.5534 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3182, allocations: 3.938 kB / 0.5534 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005932/0.3188, allocations: 445.8 kB / 0.5538 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.3188, allocations: 1.188 kB / 0.5538 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/0.3189, allocations: 17.94 kB / 0.5538 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.3189, allocations: 2.25 kB / 0.5538 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.3189, allocations: 9.172 kB / 0.5538 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3189, allocations: 1.156 kB / 0.5538 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.3189, allocations: 1.156 kB / 0.5538 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003838/0.3193, allocations: 287.2 kB / 0.5541 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.954e-05/0.3193, allocations: 18.67 kB / 0.5541 GB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.3194, allocations: 14.41 kB / 0.5541 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.3195, allocations: 9.188 kB / 0.5541 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.798e-05/0.3195, allocations: 7.266 kB / 0.5541 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.3195, allocations: 11.55 kB / 0.5541 GB, free: 6.449 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000167/0.3197, allocations: 170.8 kB / 0.5543 GB, free: 6.328 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3197, allocations: 0 / 0.5543 GB, free: 6.328 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003255/0.32, allocations: 43.09 kB / 0.5544 GB, free: 6.324 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.0006584/0.3207, allocations: 0.8103 MB / 0.5551 GB, free: 5.578 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002223/0.3209, allocations: 112.8 kB / 0.5553 GB, free: 5.527 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3209, allocations: 0 / 0.5553 GB, free: 5.527 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.901e-05/0.321, allocations: 44.08 kB / 0.5553 GB, free: 5.508 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004759/0.3214, allocations: 57.14 kB / 0.5553 GB, free: 5.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002946/0.3244, allocations: 2.458 MB / 0.5577 GB, free: 3.379 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001788/0.3246, allocations: 162.8 kB / 0.5579 GB, free: 3.199 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001211/0.3247, allocations: 30.28 kB / 0.5579 GB, free: 3.172 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.3248, allocations: 87.39 kB / 0.558 GB, free: 3.086 MB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3248, allocations: 0 / 0.558 GB, free: 3.086 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03478/0.3596, allocations: 5.301 MB / 0.5632 GB, free: 13.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.81, allocations: 4 kB / 0.5632 GB, free: 13.94 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 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.csv","/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] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv failed! Error: Could not read variable meter.i in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv. Warning: Get data of variable meter.i from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv failed! Error: Could not read variable meter.p in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv. Warning: Get data of variable meter.p from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv failed! Error: Could not read variable meter.v in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv. Warning: Get data of variable meter.v from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.70862038899213]