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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 119.9 kB / 17.79 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 185.2 kB / 20.73 MB, free: 2.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 225.6 MB / 249.1 MB, free: 3.586 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1852/0.1852, allocations: 38.51 MB / 342.5 MB, free: 8.062 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001946/0.001946, allocations: 70.62 kB / 478.6 MB, free: 33.7 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1087, allocations: 61.25 MB / 0.5272 GB, free: 1.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.0098/0.1185, allocations: 6.615 MB / 0.5337 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003769/0.1223, allocations: 1.652 MB / 0.5353 GB, free: 9.188 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004635/0.1228, allocations: 31.81 kB / 0.5353 GB, free: 9.156 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006007/0.1234, allocations: 166.7 kB / 0.5355 GB, free: 8.992 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001097/0.1245, allocations: 445.8 kB / 0.5359 GB, free: 8.555 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008227/0.1253, allocations: 347.4 kB / 0.5362 GB, free: 8.215 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001722/0.127, allocations: 1.508 MB / 0.5377 GB, free: 6.703 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000524/0.1275, allocations: 305.8 kB / 0.538 GB, free: 6.398 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001043/0.1286, allocations: 0.6152 MB / 0.5386 GB, free: 5.781 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00111/0.1297, allocations: 0.6932 MB / 0.5393 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001601/0.1298, allocations: 99.94 kB / 0.5394 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001934/0.13, allocations: 100 kB / 0.5395 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005119/0.1305, allocations: 423 kB / 0.5399 GB, free: 4.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007283/0.1313, allocations: 470 kB / 0.5403 GB, free: 4.016 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001739/0.133, allocations: 1.191 MB / 0.5415 GB, free: 2.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.133, allocations: 4 kB / 0.5415 GB, free: 2.816 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.133, allocations: 0 / 0.5415 GB, free: 2.816 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.133, allocations: 3.938 kB / 0.5415 GB, free: 2.812 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.003101/0.1361, allocations: 1.32 MB / 0.5428 GB, free: 1.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.1362, allocations: 15.88 kB / 0.5428 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001651/0.1363, allocations: 118.7 kB / 0.5429 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/0.1365, allocations: 104.4 kB / 0.543 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001643/0.1382, allocations: 0.7371 MB / 0.5437 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005059/0.1387, allocations: 338.8 kB / 0.5441 GB, free: 28 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001779/0.1389, allocations: 67.98 kB / 0.5441 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002446/0.1413, allocations: 1.141 MB / 0.5452 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.1413, allocations: 0 / 0.5452 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.409e-05/0.1414, allocations: 31.98 kB / 0.5453 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001245/0.1415, allocations: 33.3 kB / 0.5453 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002748/0.1443, allocations: 1.18 MB / 0.5465 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006144/0.1504, allocations: 3.489 MB / 0.5499 GB, free: 9.941 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002469/0.1529, allocations: 0.9179 MB / 0.5508 GB, free: 9.008 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001726/0.1546, allocations: 0.6552 MB / 0.5514 GB, free: 8.348 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.129e-05/0.1547, allocations: 16.53 kB / 0.5514 GB, free: 8.328 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001543/0.1562, allocations: 0.681 MB / 0.5521 GB, free: 7.629 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.405e-06/0.1562, allocations: 0 / 0.5521 GB, free: 7.629 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.01928/0.1755, allocations: 5.669 MB / 0.5576 GB, free: 1.883 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.028e-05/0.1756, allocations: 89.61 kB / 0.5577 GB, free: 1.777 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000613/0.1762, allocations: 481.8 kB / 0.5582 GB, free: 1.297 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001032/0.1763, allocations: 37.7 kB / 0.5582 GB, free: 1.254 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002989/0.1766, allocations: 336.8 kB / 0.5585 GB, free: 0.918 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002285/0.1768, allocations: 210.2 kB / 0.5587 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002698/0.1771, allocations: 126.3 kB / 0.5588 GB, free: 0.582 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002136/0.1773, allocations: 374.8 kB / 0.5592 GB, free: 212 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.1785, allocations: 0.5051 MB / 0.5597 GB, free: 15.7 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001231/0.1797, allocations: 0.6258 MB / 0.5603 GB, free: 15.03 MB / 430.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.007189/0.1869, allocations: 3.125 MB / 0.5633 GB, free: 11.83 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1869, allocations: 4 kB / 0.5634 GB, free: 11.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007616/0.1945, allocations: 2.491 MB / 0.5658 GB, free: 9.316 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.423e-05/0.1946, allocations: 49.69 kB / 0.5658 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.1946, allocations: 4 kB / 0.5658 GB, free: 9.258 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002546/0.1971, allocations: 1.101 MB / 0.5669 GB, free: 8.152 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005231/0.1977, allocations: 103.8 kB / 0.567 GB, free: 8.051 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01682/0.2145, allocations: 6.87 MB / 0.5737 GB, free: 1.051 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009034/0.2154, allocations: 83.97 kB / 0.5738 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.2155, allocations: 39.97 kB / 0.5738 GB, free: 0.9297 MB / 430.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: 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.0005874/0.2161, allocations: 287.6 kB / 0.5741 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.2162, allocations: 59.58 kB / 0.5742 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00774/0.2239, allocations: 2.429 MB / 0.5765 GB, free: 14.13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/0.224, allocations: 8 kB / 0.5765 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.224, allocations: 0 / 0.5765 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.224, allocations: 3.984 kB / 0.5766 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009692/0.2337, allocations: 3.544 MB / 0.58 GB, free: 10.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.2337, allocations: 0 / 0.58 GB, free: 10.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003922/0.2341, allocations: 79.83 kB / 0.5801 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002449/0.2365, allocations: 1.098 MB / 0.5812 GB, free: 9.312 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.655e-05/0.2366, allocations: 23.98 kB / 0.5812 GB, free: 9.289 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01586/0.2525, allocations: 6.829 MB / 0.5879 GB, free: 2.316 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.2525, allocations: 4 kB / 0.5879 GB, free: 2.312 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009482/0.262, allocations: 3.192 MB / 0.591 GB, free: 15.08 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005155/0.2625, allocations: 224.7 kB / 0.5912 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.2626, allocations: 31.98 kB / 0.5912 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006985/0.2633, allocations: 95.86 kB / 0.5913 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004442/0.2637, allocations: 180.2 kB / 0.5915 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.928e-05/0.2638, allocations: 23.92 kB / 0.5915 GB, free: 14.52 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003983/0.2642, allocations: 322.9 kB / 0.5918 GB, free: 14.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2642, allocations: 0 / 0.5918 GB, free: 14.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0008727/0.2651, allocations: 224 kB / 0.592 GB, free: 13.98 MB / 462.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: 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.009613/0.2747, allocations: 3.772 MB / 0.5957 GB, free: 10.16 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004504/0.2792, allocations: 1.669 MB / 0.5973 GB, free: 8.465 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.2792, allocations: 4 kB / 0.5973 GB, free: 8.461 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003157/0.2824, allocations: 1.087 MB / 0.5984 GB, free: 7.363 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009165/0.2833, allocations: 152.7 kB / 0.5986 GB, free: 7.211 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2974/0.5807, allocations: 9.86 MB / 0.6082 GB, free: 74.11 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006479/0.5813, allocations: 0.9937 MB / 0.6092 GB, free: 73.41 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005043/0.5819, allocations: 124.5 kB / 0.6093 GB, free: 73.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003029/0.5822, allocations: 235 kB / 0.6095 GB, free: 73.39 MB / 462.1 MB Notification: Performance of SimCode: time 1.222e-06/0.5822, allocations: 0 / 0.6095 GB, free: 73.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08783/0.67, allocations: 22.85 MB / 0.6318 GB, free: 62.61 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/13.31, allocations: 4.875 kB / 0.6318 GB, free: 62.61 MB / 462.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 16.401900745928288]