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.001701/0.001701, allocations: 119.6 kB / 20.44 MB, free: 1.301 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.001915/0.001915, allocations: 214.5 kB / 23.74 MB, free: 4.527 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.444/1.444, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.1817/0.1817, allocations: 38.52 MB / 352.5 MB, free: 12.52 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.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",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.002796/0.002796, allocations: 63.91 kB / 492.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3056, allocations: 62.47 MB / 0.542 GB, free: 288 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.008291/0.3139, allocations: 6.279 MB / 0.5481 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002732/0.3166, allocations: 1.458 MB / 0.5496 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002981/0.3169, allocations: 35.16 kB / 0.5496 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004775/0.3174, allocations: 144.6 kB / 0.5497 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008128/0.3182, allocations: 394.8 kB / 0.5501 GB, free: 9.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005038/0.3187, allocations: 194.2 kB / 0.5503 GB, free: 9.574 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001072/0.3198, allocations: 0.922 MB / 0.5512 GB, free: 9.059 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002951/0.3201, allocations: 170.3 kB / 0.5513 GB, free: 8.957 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006646/0.3207, allocations: 423.6 kB / 0.5518 GB, free: 8.719 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007486/0.3215, allocations: 0.4895 MB / 0.5522 GB, free: 8.434 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.201e-05/0.3216, allocations: 50.53 kB / 0.5523 GB, free: 8.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.3217, allocations: 47.88 kB / 0.5523 GB, free: 8.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002826/0.322, allocations: 268.4 kB / 0.5526 GB, free: 8.258 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003536/0.3223, allocations: 315.8 kB / 0.5529 GB, free: 8.055 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009243/0.3232, allocations: 0.6807 MB / 0.5535 GB, free: 7.594 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.3232, allocations: 1.375 kB / 0.5535 GB, free: 7.594 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3232, allocations: 0 / 0.5535 GB, free: 7.594 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.3233, allocations: 4 kB / 0.5536 GB, free: 7.59 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.002085/0.3253, allocations: 0.8846 MB / 0.5544 GB, free: 6.922 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.229e-05/0.3254, allocations: 14.23 kB / 0.5544 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001528/0.3256, allocations: 92.08 kB / 0.5545 GB, free: 6.836 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001713/0.3257, allocations: 73.16 kB / 0.5546 GB, free: 6.797 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.3269, allocations: 0.4895 MB / 0.5551 GB, free: 6.426 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.346e-05/0.327, allocations: 41.22 kB / 0.5551 GB, free: 6.406 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.576e-05/0.327, allocations: 52.3 kB / 0.5552 GB, free: 6.387 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.3281, allocations: 0.6298 MB / 0.5558 GB, free: 5.965 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.3281, allocations: 1.375 kB / 0.5558 GB, free: 5.965 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.906e-05/0.3282, allocations: 19.75 kB / 0.5558 GB, free: 5.949 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001103/0.3283, allocations: 34.44 kB / 0.5558 GB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008469/0.3291, allocations: 0.5058 MB / 0.5563 GB, free: 5.539 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003358/0.3325, allocations: 2.171 MB / 0.5584 GB, free: 3.281 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008544/0.3334, allocations: 479.1 kB / 0.5589 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006491/0.334, allocations: 322.8 kB / 0.5592 GB, free: 2.477 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.588e-05/0.334, allocations: 15.89 kB / 0.5592 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/0.3341, allocations: 42.48 kB / 0.5593 GB, free: 2.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 1.683e-06/0.3341, allocations: 0 / 0.5593 GB, free: 2.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003383/0.3375, allocations: 1.6 MB / 0.5608 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/0.3375, allocations: 85.11 kB / 0.5609 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000474/0.338, allocations: 421.8 kB / 0.5613 GB, free: 260 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.338, allocations: 33.7 kB / 0.5613 GB, free: 220 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002397/0.3383, allocations: 301.3 kB / 0.5616 GB, free: 15.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.3384, allocations: 170.5 kB / 0.5618 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.3386, allocations: 102.3 kB / 0.5619 GB, free: 15.64 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.3388, allocations: 362.8 kB / 0.5622 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003054/0.3391, allocations: 185.2 kB / 0.5624 GB, free: 15.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004025/0.3395, allocations: 308.5 kB / 0.5627 GB, free: 14.74 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.002676/0.3421, allocations: 1.159 MB / 0.5638 GB, free: 13.54 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.3421, allocations: 4 kB / 0.5638 GB, free: 13.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001225/0.3434, allocations: 0.703 MB / 0.5645 GB, free: 12.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.3434, allocations: 8 kB / 0.5645 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.3434, allocations: 0 / 0.5645 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003887/0.3438, allocations: 148.6 kB / 0.5647 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004823/0.3443, allocations: 111.8 kB / 0.5648 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003116/0.3474, allocations: 2.504 MB / 0.5672 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003182/0.3477, allocations: 24.03 kB / 0.5672 GB, free: 9.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.951e-05/0.3477, allocations: 23.98 kB / 0.5673 GB, free: 9.887 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.0003222/0.3481, allocations: 236.7 kB / 0.5675 GB, free: 9.648 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.3482, allocations: 55.62 kB / 0.5675 GB, free: 9.594 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001168/0.3493, allocations: 0.6425 MB / 0.5682 GB, free: 8.945 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.387e-06/0.3493, allocations: 7.984 kB / 0.5682 GB, free: 8.938 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/0.3493, allocations: 8.031 kB / 0.5682 GB, free: 8.93 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-06/0.3494, allocations: 3.984 kB / 0.5682 GB, free: 8.926 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002273/0.3516, allocations: 1.345 MB / 0.5695 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3516, allocations: 0 / 0.5695 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003669/0.352, allocations: 71.89 kB / 0.5696 GB, free: 7.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004229/0.3524, allocations: 144.7 kB / 0.5697 GB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.704e-05/0.3525, allocations: 16.08 kB / 0.5697 GB, free: 7.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003004/0.3555, allocations: 2.528 MB / 0.5722 GB, free: 4.629 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.3555, allocations: 4 kB / 0.5722 GB, free: 4.625 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.357, allocations: 0.9769 MB / 0.5732 GB, free: 3.609 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.3571, allocations: 47.62 kB / 0.5732 GB, free: 3.562 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.855e-05/0.3571, allocations: 19.98 kB / 0.5732 GB, free: 3.543 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/0.3574, allocations: 23.97 kB / 0.5732 GB, free: 3.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.974e-05/0.3575, allocations: 39.88 kB / 0.5733 GB, free: 3.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.305e-05/0.3575, allocations: 15.98 kB / 0.5733 GB, free: 3.465 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003341/0.3578, allocations: 287.1 kB / 0.5736 GB, free: 3.184 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3578, allocations: 3.938 kB / 0.5736 GB, free: 3.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006249/0.3584, allocations: 144 kB / 0.5737 GB, free: 3.039 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.001815/0.3603, allocations: 1.538 MB / 0.5752 GB, free: 1.453 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001191/0.3615, allocations: 0.6442 MB / 0.5758 GB, free: 0.793 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3615, allocations: 0 / 0.5758 GB, free: 0.793 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006929/0.3621, allocations: 423 kB / 0.5762 GB, free: 376 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007363/0.3629, allocations: 129.8 kB / 0.5764 GB, free: 244 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007162/0.37, allocations: 5.117 MB / 0.5814 GB, free: 10.9 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005963/0.3706, allocations: 0.9292 MB / 0.5823 GB, free: 9.945 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003046/0.3709, allocations: 108.7 kB / 0.5824 GB, free: 9.836 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002718/0.3712, allocations: 199.4 kB / 0.5826 GB, free: 9.641 MB / 430.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3712, allocations: 0 / 0.5826 GB, free: 9.641 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04567/0.4169, allocations: 12.42 MB / 0.5947 GB, free: 13.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.24, allocations: 5.344 kB / 0.5947 GB, free: 13.4 MB / 446.1 MB " [Timeout remaining time 648] (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: 15.04418050777167]