Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.001849/0.001849, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.002214/0.002214, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.494/1.494, allocations: 230.6 MB / 258.3 MB, free: 8 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.2101/0.2101, allocations: 38.53 MB / 353.2 MB, free: 12.54 MB / 286.1 MB " [Timeout remaining time 179] 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.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",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.001973/0.001973, allocations: 63.89 kB / 493.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.3675, allocations: 62.47 MB / 0.5428 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.008149/0.3756, allocations: 6.277 MB / 0.5489 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002808/0.3784, allocations: 1.465 MB / 0.5503 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003078/0.3787, allocations: 35.34 kB / 0.5504 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004762/0.3792, allocations: 140.4 kB / 0.5505 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008297/0.38, allocations: 386.7 kB / 0.5509 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004956/0.3805, allocations: 202.5 kB / 0.5511 GB, free: 9.723 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001314/0.3818, allocations: 0.9175 MB / 0.552 GB, free: 9.211 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003469/0.3822, allocations: 173.7 kB / 0.5521 GB, free: 9.105 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007983/0.383, allocations: 420.5 kB / 0.5525 GB, free: 8.871 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008118/0.3838, allocations: 0.489 MB / 0.553 GB, free: 8.586 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.927e-05/0.3839, allocations: 47.81 kB / 0.553 GB, free: 8.586 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.384, allocations: 46.84 kB / 0.5531 GB, free: 8.586 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002684/0.3843, allocations: 264.5 kB / 0.5533 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003483/0.3846, allocations: 323.1 kB / 0.5537 GB, free: 8.207 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.3858, allocations: 0.6781 MB / 0.5543 GB, free: 7.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3858, allocations: 0 / 0.5543 GB, free: 7.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3858, allocations: 0 / 0.5543 GB, free: 7.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.3858, allocations: 1.062 kB / 0.5543 GB, free: 7.75 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002601/0.3884, allocations: 0.8907 MB / 0.5552 GB, free: 7.074 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/0.3884, allocations: 17.73 kB / 0.5552 GB, free: 7.066 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.831e-05/0.3885, allocations: 17.69 kB / 0.5552 GB, free: 7.062 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001532/0.3886, allocations: 88.27 kB / 0.5553 GB, free: 6.984 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001852/0.3888, allocations: 72.97 kB / 0.5554 GB, free: 6.945 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001485/0.3903, allocations: 0.4938 MB / 0.5559 GB, free: 6.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.346e-05/0.3903, allocations: 40.16 kB / 0.5559 GB, free: 6.547 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.3905, allocations: 52.73 kB / 0.5559 GB, free: 6.527 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001514/0.392, allocations: 0.6224 MB / 0.5566 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.392, allocations: 0 / 0.5566 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.196e-05/0.3921, allocations: 17.31 kB / 0.5566 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001644/0.3923, allocations: 41.91 kB / 0.5566 GB, free: 6.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001435/0.3937, allocations: 0.5093 MB / 0.5571 GB, free: 5.684 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003585/0.3973, allocations: 2.179 MB / 0.5592 GB, free: 3.418 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009426/0.3982, allocations: 473.1 kB / 0.5597 GB, free: 2.938 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006962/0.3989, allocations: 326.8 kB / 0.56 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.21e-05/0.399, allocations: 11.89 kB / 0.56 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.399, allocations: 34.56 kB / 0.56 GB, free: 2.559 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 1.673e-06/0.399, allocations: 0 / 0.56 GB, free: 2.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003685/0.4027, allocations: 1.604 MB / 0.5616 GB, free: 0.918 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.966e-05/0.4027, allocations: 81.11 kB / 0.5617 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005194/0.4032, allocations: 417.8 kB / 0.5621 GB, free: 412 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.495e-05/0.4033, allocations: 41.83 kB / 0.5621 GB, free: 364 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002359/0.4035, allocations: 305 kB / 0.5624 GB, free: 52 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001742/0.4037, allocations: 170.7 kB / 0.5626 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/0.4039, allocations: 94.3 kB / 0.5627 GB, free: 15.78 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.4041, allocations: 362.8 kB / 0.563 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003165/0.4044, allocations: 189.2 kB / 0.5632 GB, free: 15.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004142/0.4048, allocations: 308.5 kB / 0.5635 GB, free: 14.88 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002818/0.4076, allocations: 1.159 MB / 0.5646 GB, free: 13.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.4076, allocations: 4 kB / 0.5646 GB, free: 13.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001255/0.4089, allocations: 0.703 MB / 0.5653 GB, free: 12.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.4089, allocations: 8 kB / 0.5653 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.4089, allocations: 4 kB / 0.5653 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004022/0.4093, allocations: 140.6 kB / 0.5655 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005237/0.4098, allocations: 107.9 kB / 0.5656 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003221/0.413, allocations: 2.5 MB / 0.568 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000348/0.4134, allocations: 28.02 kB / 0.568 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.128e-05/0.4134, allocations: 20 kB / 0.568 GB, free: 10.04 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (54): * Single equations (assignments): 53 * 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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003568/0.4138, allocations: 233.5 kB / 0.5683 GB, free: 9.805 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.4139, allocations: 59.61 kB / 0.5683 GB, free: 9.746 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001212/0.4151, allocations: 0.6425 MB / 0.569 GB, free: 9.098 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.4151, allocations: 4 kB / 0.569 GB, free: 9.094 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/0.4151, allocations: 11.94 kB / 0.569 GB, free: 9.082 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.4151, allocations: 3.984 kB / 0.569 GB, free: 9.078 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00245/0.4176, allocations: 1.337 MB / 0.5703 GB, free: 7.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.4176, allocations: 0 / 0.5703 GB, free: 7.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000378/0.418, allocations: 75.89 kB / 0.5703 GB, free: 7.586 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004313/0.4184, allocations: 144.9 kB / 0.5705 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.302e-05/0.4184, allocations: 16 kB / 0.5705 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003247/0.4217, allocations: 2.531 MB / 0.573 GB, free: 4.781 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4217, allocations: 4 kB / 0.573 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.4234, allocations: 0.9808 MB / 0.5739 GB, free: 3.758 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.4236, allocations: 51.66 kB / 0.574 GB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.922e-05/0.4236, allocations: 15.94 kB / 0.574 GB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.4239, allocations: 19.98 kB / 0.574 GB, free: 3.672 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.35e-05/0.424, allocations: 47.89 kB / 0.5741 GB, free: 3.625 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-05/0.424, allocations: 15.94 kB / 0.5741 GB, free: 3.609 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003668/0.4244, allocations: 291.1 kB / 0.5744 GB, free: 3.328 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4244, allocations: 0 / 0.5744 GB, free: 3.328 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007009/0.4251, allocations: 152 kB / 0.5745 GB, free: 3.18 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[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 (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001955/0.427, allocations: 1.527 MB / 0.576 GB, free: 1.605 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001212/0.4282, allocations: 0.6364 MB / 0.5766 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.4283, allocations: 0 / 0.5766 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007124/0.429, allocations: 430.9 kB / 0.577 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007743/0.4297, allocations: 136.8 kB / 0.5772 GB, free: 396 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007438/0.4372, allocations: 5.125 MB / 0.5822 GB, free: 11.04 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000734/0.4379, allocations: 0.9292 MB / 0.5831 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003202/0.4382, allocations: 104.7 kB / 0.5832 GB, free: 9.98 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003474/0.4386, allocations: 191.4 kB / 0.5833 GB, free: 9.793 MB / 430.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4386, allocations: 0 / 0.5833 GB, free: 9.793 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04051/0.4791, allocations: 12.45 MB / 0.5955 GB, free: 13.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/13, allocations: 7.922 kB / 0.5955 GB, free: 13.54 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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: 16.1147254150128]