Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.001286/0.001286, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001399/0.001399, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.468/1.468, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.1872/0.1872, allocations: 38.53 MB / 352.5 MB, free: 12.54 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.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.002016/0.002016, allocations: 66.84 kB / 492.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3246, allocations: 62.47 MB / 0.542 GB, free: 460 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.008695/0.3333, allocations: 6.681 MB / 0.5485 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004282/0.3376, allocations: 1.943 MB / 0.5504 GB, free: 9.664 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006536/0.3383, allocations: 41.59 kB / 0.5505 GB, free: 9.641 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001665/0.3399, allocations: 452.4 kB / 0.5509 GB, free: 9.293 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001471/0.3414, allocations: 426.7 kB / 0.5513 GB, free: 8.949 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00131/0.3427, allocations: 360.5 kB / 0.5517 GB, free: 8.684 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001707/0.3444, allocations: 1.031 MB / 0.5527 GB, free: 8.105 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008024/0.3452, allocations: 425.1 kB / 0.5531 GB, free: 7.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009867/0.3462, allocations: 475.4 kB / 0.5535 GB, free: 7.555 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009505/0.3471, allocations: 0.6161 MB / 0.5541 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.3473, allocations: 70.02 kB / 0.5542 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006235/0.3479, allocations: 285.4 kB / 0.5545 GB, free: 7.066 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000403/0.3483, allocations: 379.5 kB / 0.5548 GB, free: 6.824 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004811/0.3488, allocations: 422.7 kB / 0.5552 GB, free: 6.547 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001363/0.3501, allocations: 1.051 MB / 0.5562 GB, free: 5.852 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.3501, allocations: 0 / 0.5562 GB, free: 5.852 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3501, allocations: 0 / 0.5562 GB, free: 5.852 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.05e-05/0.3502, allocations: 5.094 kB / 0.5563 GB, free: 5.848 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002327/0.3525, allocations: 1.069 MB / 0.5573 GB, free: 4.789 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.3525, allocations: 15.98 kB / 0.5573 GB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001551/0.3527, allocations: 122.8 kB / 0.5574 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008612/0.3536, allocations: 168.2 kB / 0.5576 GB, free: 4.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/0.3548, allocations: 0.5438 MB / 0.5581 GB, free: 3.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.6e-05/0.3548, allocations: 45.69 kB / 0.5582 GB, free: 3.863 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001865/0.355, allocations: 79.91 kB / 0.5582 GB, free: 3.785 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.3566, allocations: 1.006 MB / 0.5592 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.3567, allocations: 0 / 0.5592 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-05/0.3567, allocations: 28 kB / 0.5593 GB, free: 2.711 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002058/0.3569, allocations: 77.88 kB / 0.5593 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/0.3585, allocations: 0.9836 MB / 0.5603 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005407/0.3639, allocations: 3.176 MB / 0.5634 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.365, allocations: 0.6321 MB / 0.564 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006488/0.3657, allocations: 385.5 kB / 0.5644 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.211e-05/0.3657, allocations: 12.5 kB / 0.5644 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.3658, allocations: 39.06 kB / 0.5644 GB, free: 13.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=73): time 2.404e-06/0.3658, allocations: 0 / 0.5644 GB, free: 13.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=75): time 0.004043/0.3698, allocations: 2.22 MB / 0.5666 GB, free: 11.02 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.061e-05/0.3699, allocations: 89.75 kB / 0.5667 GB, free: 10.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005629/0.3704, allocations: 449.7 kB / 0.5671 GB, free: 10.46 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.384e-05/0.3705, allocations: 37.64 kB / 0.5671 GB, free: 10.42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002724/0.3708, allocations: 368.4 kB / 0.5675 GB, free: 10.05 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002273/0.371, allocations: 273.7 kB / 0.5678 GB, free: 9.785 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002232/0.3712, allocations: 146.6 kB / 0.5679 GB, free: 9.637 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.3714, allocations: 378.7 kB / 0.5683 GB, free: 9.258 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005378/0.372, allocations: 341.8 kB / 0.5686 GB, free: 8.926 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006859/0.3726, allocations: 0.5147 MB / 0.5691 GB, free: 8.34 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005224/0.3779, allocations: 2.17 MB / 0.5712 GB, free: 6.098 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.3779, allocations: 4 kB / 0.5712 GB, free: 6.094 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001781/0.3796, allocations: 1.023 MB / 0.5722 GB, free: 5.062 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.3797, allocations: 4 kB / 0.5722 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.3797, allocations: 8 kB / 0.5722 GB, free: 5.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001556/0.3798, allocations: 44.77 kB / 0.5723 GB, free: 5.004 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007965/0.3806, allocations: 183.7 kB / 0.5724 GB, free: 4.824 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/0.382, allocations: 1.401 MB / 0.5738 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004759/0.3824, allocations: 39.97 kB / 0.5738 GB, free: 3.266 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.32e-05/0.3825, allocations: 35.98 kB / 0.5739 GB, free: 3.23 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (95): * Single equations (assignments): 92 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004746/0.383, allocations: 281.5 kB / 0.5741 GB, free: 2.945 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001393/0.3831, allocations: 63.58 kB / 0.5742 GB, free: 2.883 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001539/0.3847, allocations: 0.8914 MB / 0.5751 GB, free: 1.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.952e-05/0.3847, allocations: 23.98 kB / 0.5751 GB, free: 1.957 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.3847, allocations: 3.938 kB / 0.5751 GB, free: 1.953 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.33e-05/0.3847, allocations: 3.984 kB / 0.5751 GB, free: 1.949 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003506/0.3882, allocations: 1.91 MB / 0.577 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/0.3882, allocations: 4 kB / 0.577 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006863/0.3889, allocations: 152.3 kB / 0.5771 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000112/0.389, allocations: 40.83 kB / 0.5772 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.431e-05/0.3891, allocations: 24 kB / 0.5772 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00124/0.3903, allocations: 1.393 MB / 0.5785 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.626e-06/0.3903, allocations: 7.938 kB / 0.5785 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002093/0.3924, allocations: 1.454 MB / 0.58 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001624/0.3926, allocations: 67.64 kB / 0.58 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.111e-05/0.3927, allocations: 23.98 kB / 0.5801 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003611/0.393, allocations: 31.97 kB / 0.5801 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.804e-05/0.3931, allocations: 60.28 kB / 0.5801 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.462e-05/0.3932, allocations: 27.98 kB / 0.5802 GB, free: 12.46 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003909/0.3936, allocations: 303.1 kB / 0.5805 GB, free: 12.16 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3936, allocations: 0 / 0.5805 GB, free: 12.16 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000857/0.3944, allocations: 187.9 kB / 0.5806 GB, free: 11.98 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],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 (75): * Single equations (assignments): 71 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002509/0.397, allocations: 2.042 MB / 0.5826 GB, free: 9.852 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.3986, allocations: 0.9188 MB / 0.5835 GB, free: 8.918 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3986, allocations: 0 / 0.5835 GB, free: 8.918 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007172/0.3993, allocations: 499.3 kB / 0.584 GB, free: 8.418 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008567/0.4001, allocations: 156.2 kB / 0.5842 GB, free: 8.273 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00959/0.4097, allocations: 6.92 MB / 0.5909 GB, free: 1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007433/0.4105, allocations: 1.016 MB / 0.5919 GB, free: 15.96 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005729/0.411, allocations: 209.3 kB / 0.5921 GB, free: 15.75 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004161/0.4115, allocations: 275.3 kB / 0.5924 GB, free: 15.48 MB / 446.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4115, allocations: 0 / 0.5924 GB, free: 15.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05369/0.4651, allocations: 15.45 MB / 0.6075 GB, free: 204 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.79, allocations: 12.42 kB / 0.6075 GB, free: 196 kB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.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.648864161921665]