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.001338/0.001338, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001511/0.001511, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.449/1.449, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.1931/0.1931, allocations: 38.55 MB / 352.5 MB, free: 12.39 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.002124/0.002124, allocations: 67.91 kB / 492.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2993, allocations: 62.46 MB / 0.5419 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.008338/0.3077, allocations: 6.221 MB / 0.548 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003789/0.3114, allocations: 1.803 MB / 0.5498 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005211/0.312, allocations: 37.72 kB / 0.5498 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001457/0.3134, allocations: 437.5 kB / 0.5502 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001136/0.3146, allocations: 431.2 kB / 0.5506 GB, free: 9.414 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.3156, allocations: 352.6 kB / 0.551 GB, free: 9.156 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001545/0.3172, allocations: 1.035 MB / 0.552 GB, free: 8.574 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000811/0.318, allocations: 416.8 kB / 0.5524 GB, free: 8.297 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001346/0.3193, allocations: 480 kB / 0.5528 GB, free: 8.027 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001228/0.3206, allocations: 0.5838 MB / 0.5534 GB, free: 7.691 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001494/0.3207, allocations: 66.47 kB / 0.5535 GB, free: 7.691 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006861/0.3214, allocations: 264.5 kB / 0.5537 GB, free: 7.586 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004102/0.3218, allocations: 380.5 kB / 0.5541 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004561/0.3223, allocations: 354.8 kB / 0.5544 GB, free: 7.133 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001706/0.324, allocations: 1.061 MB / 0.5555 GB, free: 6.379 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.324, allocations: 3.938 kB / 0.5555 GB, free: 6.375 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.324, allocations: 0 / 0.5555 GB, free: 6.375 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.526e-05/0.324, allocations: 0 / 0.5555 GB, free: 6.375 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.002395/0.3264, allocations: 1.068 MB / 0.5565 GB, free: 5.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.3264, allocations: 15.98 kB / 0.5565 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001632/0.3266, allocations: 122.7 kB / 0.5566 GB, free: 5.125 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009023/0.3275, allocations: 164.2 kB / 0.5568 GB, free: 4.965 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.3288, allocations: 0.5439 MB / 0.5573 GB, free: 4.395 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.932e-05/0.3288, allocations: 49.67 kB / 0.5574 GB, free: 4.344 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001795/0.329, allocations: 79.92 kB / 0.5575 GB, free: 4.266 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/0.3307, allocations: 1.014 MB / 0.5584 GB, free: 3.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.516e-05/0.3307, allocations: 4 kB / 0.5584 GB, free: 3.207 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.185e-05/0.3308, allocations: 20 kB / 0.5585 GB, free: 3.188 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002241/0.331, allocations: 73.95 kB / 0.5585 GB, free: 3.117 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001671/0.3327, allocations: 0.9758 MB / 0.5595 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005407/0.3381, allocations: 3.024 MB / 0.5624 GB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.3392, allocations: 0.6248 MB / 0.5631 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000663/0.3399, allocations: 391.3 kB / 0.5634 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.819e-05/0.34, allocations: 12.5 kB / 0.5634 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.34, allocations: 35.06 kB / 0.5635 GB, free: 13.92 MB / 414.1 MB Notification: Performance of pre-optimization done (n=73): time 3.106e-06/0.34, allocations: 4 kB / 0.5635 GB, free: 13.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=75): time 0.004206/0.3442, allocations: 2.22 MB / 0.5656 GB, free: 11.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.964e-05/0.3443, allocations: 85.77 kB / 0.5657 GB, free: 11.56 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005729/0.3448, allocations: 457.7 kB / 0.5662 GB, free: 11.1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.304e-05/0.3449, allocations: 37.7 kB / 0.5662 GB, free: 11.06 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/0.3452, allocations: 368.4 kB / 0.5665 GB, free: 10.69 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002396/0.3454, allocations: 269.7 kB / 0.5668 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002373/0.3457, allocations: 158.7 kB / 0.567 GB, free: 10.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.3459, allocations: 378.7 kB / 0.5673 GB, free: 9.887 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005693/0.3464, allocations: 337.8 kB / 0.5676 GB, free: 9.559 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007152/0.3471, allocations: 0.5185 MB / 0.5681 GB, free: 8.969 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.005367/0.3525, allocations: 2.168 MB / 0.5703 GB, free: 6.734 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.3525, allocations: 4 kB / 0.5703 GB, free: 6.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001799/0.3543, allocations: 1.023 MB / 0.5713 GB, free: 5.695 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.3543, allocations: 8 kB / 0.5713 GB, free: 5.688 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.3543, allocations: 4 kB / 0.5713 GB, free: 5.684 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001591/0.3545, allocations: 48.75 kB / 0.5713 GB, free: 5.633 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007893/0.3553, allocations: 192.1 kB / 0.5715 GB, free: 5.445 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001329/0.3566, allocations: 1.385 MB / 0.5729 GB, free: 3.941 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005061/0.3571, allocations: 35.97 kB / 0.5729 GB, free: 3.906 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.22e-05/0.3572, allocations: 32 kB / 0.5729 GB, free: 3.875 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.0004508/0.3576, allocations: 281.4 kB / 0.5732 GB, free: 3.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.3578, allocations: 67.64 kB / 0.5733 GB, free: 3.523 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/0.3594, allocations: 0.8953 MB / 0.5741 GB, free: 2.617 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.801e-05/0.3595, allocations: 16 kB / 0.5741 GB, free: 2.602 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.3595, allocations: 3.938 kB / 0.5742 GB, free: 2.598 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.3595, allocations: 3.984 kB / 0.5742 GB, free: 2.594 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003654/0.3631, allocations: 1.848 MB / 0.576 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.407e-06/0.3631, allocations: 4 kB / 0.576 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007034/0.3638, allocations: 151.7 kB / 0.5761 GB, free: 496 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000123/0.364, allocations: 44.89 kB / 0.5762 GB, free: 448 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.705e-05/0.364, allocations: 24 kB / 0.5762 GB, free: 424 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/0.3653, allocations: 1.389 MB / 0.5775 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.909e-06/0.3653, allocations: 11.92 kB / 0.5775 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002156/0.3674, allocations: 1.45 MB / 0.579 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.3676, allocations: 67.58 kB / 0.579 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.124e-05/0.3677, allocations: 20.12 kB / 0.579 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003815/0.3681, allocations: 40.03 kB / 0.5791 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.3682, allocations: 68.27 kB / 0.5791 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.267e-05/0.3682, allocations: 24 kB / 0.5792 GB, free: 13.16 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003774/0.3686, allocations: 295.1 kB / 0.5794 GB, free: 12.87 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3686, allocations: 0 / 0.5794 GB, free: 12.87 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007456/0.3693, allocations: 191.9 kB / 0.5796 GB, free: 12.68 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.002639/0.372, allocations: 2.054 MB / 0.5816 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.3737, allocations: 0.9149 MB / 0.5825 GB, free: 9.613 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.3737, allocations: 0 / 0.5825 GB, free: 9.613 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008162/0.3745, allocations: 494.9 kB / 0.583 GB, free: 9.117 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009453/0.3755, allocations: 159.7 kB / 0.5832 GB, free: 8.973 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/0.3862, allocations: 6.916 MB / 0.5899 GB, free: 1.707 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006381/0.3869, allocations: 420.3 kB / 0.5903 GB, free: 1.273 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007242/0.3876, allocations: 201.4 kB / 0.5905 GB, free: 1.074 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004926/0.3881, allocations: 279.3 kB / 0.5908 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of SimCode: time 2.675e-06/0.3881, allocations: 0 / 0.5908 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07603/0.4641, allocations: 15.62 MB / 0.606 GB, free: 1.418 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.84, allocations: 7.094 kB / 0.606 GB, free: 1.414 MB / 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.6230245558545]