Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.0009111/0.0009111, allocations: 83.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001012/0.001012, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.9569/0.9569, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.2402/0.2402, allocations: 29.4 MB / 290.1 MB, free: 2.449 MB / 266.7 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.InverterToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.341e-05/2.504e-05, allocations: 4.672 kB / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.006378/0.006403, allocations: 6.22 MB / 436.4 MB, free: 7.363 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00279/0.009193, allocations: 1.625 MB / 438.1 MB, free: 5.734 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004295/0.009623, allocations: 39.69 kB / 438.1 MB, free: 5.695 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005251/0.01015, allocations: 158.7 kB / 438.3 MB, free: 5.539 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009841/0.01113, allocations: 461.3 kB / 438.7 MB, free: 5.086 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007507/0.01188, allocations: 371.2 kB / 439.1 MB, free: 4.723 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.01323, allocations: 1.511 MB / 440.6 MB, free: 3.207 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003375/0.01357, allocations: 246.2 kB / 440.8 MB, free: 2.957 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001127/0.0147, allocations: 0.8222 MB / 441.6 MB, free: 2.133 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009755/0.01567, allocations: 0.6235 MB / 442.3 MB, free: 1.508 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001593/0.01583, allocations: 96 kB / 442.4 MB, free: 1.414 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001683/0.016, allocations: 103.9 kB / 442.5 MB, free: 1.312 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003803/0.01638, allocations: 442.8 kB / 442.9 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000424/0.0168, allocations: 335.3 kB / 443.2 MB, free: 0.5508 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2015/0.2183, allocations: 1.235 MB / 444.5 MB, free: 45.56 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.277e-06/0.2183, allocations: 0.5625 kB / 444.5 MB, free: 45.56 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2183, allocations: 0.75 kB / 444.5 MB, free: 45.56 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.738e-05/0.2183, allocations: 0 / 444.5 MB, free: 45.56 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002542/0.2209, allocations: 1.247 MB / 445.7 MB, free: 44.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.2209, allocations: 14.36 kB / 445.7 MB, free: 44.98 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001056/0.221, allocations: 115.2 kB / 445.8 MB, free: 44.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.2212, allocations: 103.9 kB / 445.9 MB, free: 44.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009976/0.2222, allocations: 0.671 MB / 446.6 MB, free: 44.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002993/0.2225, allocations: 0.7459 MB / 447.3 MB, free: 43.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.643e-05/0.2225, allocations: 68.75 kB / 447.4 MB, free: 43.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/0.2241, allocations: 1.144 MB / 448.6 MB, free: 43.78 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.2241, allocations: 0 / 448.6 MB, free: 43.78 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.198e-05/0.2242, allocations: 23 kB / 448.6 MB, free: 43.78 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000119/0.2243, allocations: 46.77 kB / 448.6 MB, free: 43.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001643/0.226, allocations: 1.169 MB / 449.8 MB, free: 43.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003225/0.2292, allocations: 3.232 MB / 453 MB, free: 42.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/0.2306, allocations: 0.9232 MB / 453.9 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008792/0.2315, allocations: 0.6434 MB / 454.6 MB, free: 42.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.519e-05/0.2315, allocations: 9.719 kB / 454.6 MB, free: 42.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008575/0.2324, allocations: 0.6869 MB / 455.3 MB, free: 41.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 2.334e-06/0.2324, allocations: 0 / 455.3 MB, free: 41.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=61): time 0.01005/0.2424, allocations: 5.518 MB / 460.8 MB, free: 40.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.08e-05/0.2425, allocations: 91.48 kB / 460.9 MB, free: 40.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004233/0.2429, allocations: 472.5 kB / 461.4 MB, free: 40.37 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.522e-05/0.243, allocations: 41.02 kB / 461.4 MB, free: 40.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001947/0.2432, allocations: 329.3 kB / 461.7 MB, free: 40.06 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.2433, allocations: 217.8 kB / 461.9 MB, free: 39.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.2434, allocations: 127 kB / 462.1 MB, free: 39.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.619e-05/0.2435, allocations: 372.6 kB / 462.4 MB, free: 39.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006251/0.2441, allocations: 0.5407 MB / 463 MB, free: 39.31 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006421/0.2448, allocations: 0.6592 MB / 463.6 MB, free: 39 MB / 410.7 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.004089/0.2489, allocations: 3.081 MB / 466.7 MB, free: 38.01 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.2489, allocations: 0 / 466.7 MB, free: 38.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004056/0.2529, allocations: 2.513 MB / 469.2 MB, free: 37.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.517e-05/0.253, allocations: 52.3 kB / 469.3 MB, free: 37.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.253, allocations: 6.516 kB / 469.3 MB, free: 37.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/0.2545, allocations: 1.08 MB / 470.3 MB, free: 37.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003279/0.2548, allocations: 117.1 kB / 470.5 MB, free: 37.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008812/0.2637, allocations: 6.667 MB / 477.1 MB, free: 34.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000623/0.2643, allocations: 85.94 kB / 477.2 MB, free: 34.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.021e-05/0.2643, allocations: 44.53 kB / 477.3 MB, free: 34.32 MB / 410.7 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: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004195/0.2648, allocations: 281.7 kB / 477.5 MB, free: 34.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.525e-05/0.2649, allocations: 67.94 kB / 477.6 MB, free: 34.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004928/0.2698, allocations: 2.42 MB / 480 MB, free: 33.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.527e-05/0.2698, allocations: 8.188 kB / 480 MB, free: 33.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.2698, allocations: 1.25 kB / 480 MB, free: 33.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/0.2698, allocations: 6.75 kB / 480 MB, free: 33.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006021/0.2759, allocations: 3.372 MB / 483.4 MB, free: 32.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.2759, allocations: 2.312 kB / 483.4 MB, free: 32.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002573/0.2761, allocations: 77.55 kB / 483.5 MB, free: 32.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001641/0.2778, allocations: 1.094 MB / 484.6 MB, free: 32.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.827e-05/0.2778, allocations: 18.92 kB / 484.6 MB, free: 32.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01064/0.2885, allocations: 6.659 MB / 491.3 MB, free: 29.51 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.2885, allocations: 2.344 kB / 491.3 MB, free: 29.51 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005513/0.294, allocations: 3.202 MB / 494.5 MB, free: 28.64 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004154/0.2944, allocations: 146.5 kB / 494.6 MB, free: 28.58 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.68e-05/0.2945, allocations: 39.75 kB / 494.6 MB, free: 28.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004065/0.2949, allocations: 91.67 kB / 494.7 MB, free: 28.55 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004496/0.2954, allocations: 168 kB / 494.9 MB, free: 28.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-05/0.2954, allocations: 26.17 kB / 494.9 MB, free: 28.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004344/0.2958, allocations: 326.5 kB / 495.2 MB, free: 28.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2958, allocations: 1.844 kB / 495.2 MB, free: 28.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008427/0.2967, allocations: 222.6 kB / 495.5 MB, free: 28.36 MB / 410.7 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: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005321/0.302, allocations: 3.764 MB / 499.2 MB, free: 26.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002713/0.3047, allocations: 1.711 MB / 0.4892 GB, free: 25.44 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.3047, allocations: 0 / 0.4892 GB, free: 25.44 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001723/0.3064, allocations: 1.075 MB / 0.4902 GB, free: 24.88 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006836/0.3071, allocations: 170.9 kB / 0.4904 GB, free: 24.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01211/0.3192, allocations: 9.936 MB / 0.5001 GB, free: 15.72 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.3195, allocations: 399.4 kB / 0.5005 GB, free: 15.3 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003025/0.3198, allocations: 122 kB / 0.5006 GB, free: 15.19 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001867/0.32, allocations: 236.4 kB / 0.5008 GB, free: 14.96 MB / 410.7 MB Notification: Performance of SimCode: time 1.172e-06/0.32, allocations: 0 / 0.5008 GB, free: 14.96 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0317/0.3517, allocations: 23.16 MB / 0.5235 GB, free: 8.035 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.87/8.222, allocations: 8.062 kB / 0.5235 GB, free: 8.027 MB / 426.7 MB " [Timeout remaining time 652] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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: 10.336174804717302]