Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.001637/0.001637, allocations: 105.1 kB / 21.22 MB, free: 0.5078 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.001463/0.001463, allocations: 214.9 kB / 24.51 MB, free: 3.688 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.56/1.56, allocations: 230.6 MB / 258.3 MB, free: 7.812 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.2066/0.2066, allocations: 38.55 MB / 353.3 MB, free: 12.32 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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.002006/0.002006, allocations: 68.08 kB / 493.3 MB, free: 4.688 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.3867, allocations: 62.45 MB / 0.5427 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005944/0.3926, allocations: 3.875 MB / 0.5465 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001648/0.3943, allocations: 0.8395 MB / 0.5473 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.3945, allocations: 22.69 kB / 0.5473 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002286/0.3947, allocations: 47.69 kB / 0.5474 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005216/0.3952, allocations: 170.3 kB / 0.5475 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002056/0.3954, allocations: 77.66 kB / 0.5476 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004566/0.3959, allocations: 372.9 kB / 0.548 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.3961, allocations: 61.88 kB / 0.548 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003449/0.3964, allocations: 186.9 kB / 0.5482 GB, free: 12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003348/0.3967, allocations: 168.5 kB / 0.5484 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.982e-05/0.3968, allocations: 16.47 kB / 0.5484 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.867e-05/0.3968, allocations: 17.28 kB / 0.5484 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.3969, allocations: 81.84 kB / 0.5485 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.3971, allocations: 108.2 kB / 0.5486 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003481/0.3974, allocations: 262 kB / 0.5488 GB, free: 11.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.3974, allocations: 1.219 kB / 0.5488 GB, free: 11.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3974, allocations: 4 kB / 0.5488 GB, free: 11.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.3974, allocations: 0 / 0.5488 GB, free: 11.61 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009398/0.3984, allocations: 495.9 kB / 0.5493 GB, free: 11.2 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.3984, allocations: 18.89 kB / 0.5493 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.758e-05/0.3984, allocations: 5.562 kB / 0.5493 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.942e-05/0.3985, allocations: 57.19 kB / 0.5494 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.786e-05/0.3986, allocations: 30.22 kB / 0.5494 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004999/0.3991, allocations: 263 kB / 0.5497 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.3991, allocations: 17.34 kB / 0.5497 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.685e-05/0.3991, allocations: 20.81 kB / 0.5497 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000457/0.3996, allocations: 274 kB / 0.55 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.3996, allocations: 1.062 kB / 0.55 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.411e-05/0.3996, allocations: 6.281 kB / 0.55 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.3996, allocations: 5.625 kB / 0.55 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002782/0.3999, allocations: 167 kB / 0.5501 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001511/0.4014, allocations: 1.105 MB / 0.5512 GB, free: 9.535 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/0.4016, allocations: 77.11 kB / 0.5513 GB, free: 9.465 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.562e-05/0.4016, allocations: 33.22 kB / 0.5513 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.63e-05/0.4017, allocations: 1.375 kB / 0.5513 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.519e-05/0.4017, allocations: 35.94 kB / 0.5513 GB, free: 9.395 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 2.104e-06/0.4017, allocations: 0 / 0.5513 GB, free: 9.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.000871/0.4026, allocations: 353.6 kB / 0.5517 GB, free: 9.102 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.857e-05/0.4027, allocations: 78.73 kB / 0.5518 GB, free: 9.008 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002761/0.4029, allocations: 253.2 kB / 0.552 GB, free: 8.828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.403, allocations: 29.7 kB / 0.552 GB, free: 8.793 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.4031, allocations: 192.7 kB / 0.5522 GB, free: 8.613 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.08e-05/0.4031, allocations: 31.48 kB / 0.5522 GB, free: 8.586 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.221e-05/0.4032, allocations: 42.97 kB / 0.5523 GB, free: 8.551 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.4034, allocations: 333.1 kB / 0.5526 GB, free: 8.223 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.306e-05/0.4034, allocations: 22.92 kB / 0.5526 GB, free: 8.215 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.4036, allocations: 124.2 kB / 0.5527 GB, free: 8.074 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002232/0.4038, allocations: 167.7 kB / 0.5529 GB, free: 7.906 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4038, allocations: 5.062 kB / 0.5529 GB, free: 7.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002675/0.4041, allocations: 178.1 kB / 0.5531 GB, free: 7.801 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.4041, allocations: 10.97 kB / 0.5531 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.4041, allocations: 2.906 kB / 0.5531 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.4041, allocations: 5.5 kB / 0.5531 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.4043, allocations: 48.39 kB / 0.5531 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.4043, allocations: 4.25 kB / 0.5531 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.4044, allocations: 8.078 kB / 0.5532 GB, free: 7.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/0.4044, allocations: 12.28 kB / 0.5532 GB, free: 7.773 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 (22): * Single equations (assignments): 22 * 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.0001435/0.4045, allocations: 150.5 kB / 0.5533 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.362e-05/0.4046, allocations: 21.75 kB / 0.5533 GB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001646/0.4047, allocations: 93.98 kB / 0.5534 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-06/0.4047, allocations: 1.312 kB / 0.5534 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4047, allocations: 3.938 kB / 0.5534 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.4047, allocations: 4.844 kB / 0.5534 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004921/0.4052, allocations: 385.5 kB / 0.5538 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.4052, allocations: 1.094 kB / 0.5538 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.965e-05/0.4053, allocations: 21.83 kB / 0.5538 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.4053, allocations: 1 kB / 0.5538 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.4053, allocations: 5.344 kB / 0.5538 GB, free: 7.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.4054, allocations: 5.406 kB / 0.5538 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4054, allocations: 1.219 kB / 0.5538 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002925/0.4056, allocations: 233.3 kB / 0.5541 GB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.385e-05/0.4057, allocations: 14.06 kB / 0.5541 GB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.081e-05/0.4057, allocations: 9.344 kB / 0.5541 GB, free: 6.957 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.998e-05/0.4058, allocations: 5.297 kB / 0.5541 GB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.739e-05/0.4058, allocations: 3.406 kB / 0.5541 GB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.533e-06/0.4058, allocations: 2.625 kB / 0.5541 GB, free: 6.953 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001613/0.406, allocations: 172.7 kB / 0.5543 GB, free: 6.832 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.406, allocations: 3.938 kB / 0.5543 GB, free: 6.828 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003328/0.4063, allocations: 38.94 kB / 0.5543 GB, free: 6.824 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 (9): * Single equations (assignments): 8 * 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.0006681/0.407, allocations: 0.7604 MB / 0.555 GB, free: 6.098 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000232/0.4072, allocations: 87.5 kB / 0.5551 GB, free: 6.059 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.4072, allocations: 1.156 kB / 0.5551 GB, free: 6.059 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.011e-05/0.4073, allocations: 27.52 kB / 0.5551 GB, free: 6.047 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006286/0.4079, allocations: 57.06 kB / 0.5552 GB, free: 6.023 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003303/0.4112, allocations: 2.32 MB / 0.5575 GB, free: 4.059 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.4115, allocations: 153.9 kB / 0.5576 GB, free: 3.941 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001369/0.4116, allocations: 23 kB / 0.5576 GB, free: 3.934 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.4117, allocations: 75.5 kB / 0.5577 GB, free: 3.871 MB / 398.1 MB Notification: Performance of SimCode: time 1.794e-06/0.4117, allocations: 0 / 0.5577 GB, free: 3.871 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02791/0.4396, allocations: 4.532 MB / 0.5621 GB, free: 15.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.95, allocations: 22.22 kB / 0.5622 GB, free: 15.8 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.02181602991186]