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.001849/0.001849, allocations: 95.61 kB / 20.96 MB, free: 3.461 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.002/0.002, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 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 1.551/1.551, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 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.3095/0.3095, allocations: 29.41 MB / 290.5 MB, free: 2.434 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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 368.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.7e-05/2.821e-05, allocations: 2.312 kB / 368.9 MB, free: 11.33 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.009726/0.009754, allocations: 6.567 MB / 375.4 MB, free: 4.727 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003407/0.01316, allocations: 1.64 MB / 377.1 MB, free: 3.082 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003682/0.01353, allocations: 39.69 kB / 377.1 MB, free: 3.043 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005831/0.01411, allocations: 158.7 kB / 377.3 MB, free: 2.887 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001125/0.01524, allocations: 461.3 kB / 377.7 MB, free: 2.434 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000849/0.01609, allocations: 367.2 kB / 378.1 MB, free: 2.074 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002003/0.01809, allocations: 1.511 MB / 379.6 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004344/0.01852, allocations: 254.2 kB / 379.8 MB, free: 320 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001385/0.01991, allocations: 0.8183 MB / 380.7 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001142/0.02105, allocations: 0.6352 MB / 381.3 MB, free: 14.86 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001893/0.02124, allocations: 100 kB / 381.4 MB, free: 14.76 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002306/0.02147, allocations: 100 kB / 381.5 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000544/0.02201, allocations: 450.9 kB / 381.9 MB, free: 14.22 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005147/0.02253, allocations: 343.3 kB / 382.3 MB, free: 13.88 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001701/0.02423, allocations: 1.235 MB / 383.5 MB, free: 12.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.02424, allocations: 0 / 383.5 MB, free: 12.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.02424, allocations: 0 / 383.5 MB, free: 12.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.02425, allocations: 0 / 383.5 MB, free: 12.64 MB / 362.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.003055/0.02731, allocations: 1.387 MB / 384.9 MB, free: 11.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.02735, allocations: 11.98 kB / 384.9 MB, free: 11.19 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003257/0.02768, allocations: 164.4 kB / 385.1 MB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001729/0.0294, allocations: 0.6786 MB / 385.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009329/0.03034, allocations: 0.7292 MB / 386.5 MB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.03048, allocations: 68.38 kB / 386.5 MB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001952/0.03244, allocations: 0.8412 MB / 387.4 MB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.03246, allocations: 0 / 387.4 MB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.659e-05/0.03254, allocations: 28 kB / 387.4 MB, free: 8.461 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001309/0.03267, allocations: 37.28 kB / 387.4 MB, free: 8.426 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001982/0.03466, allocations: 0.6178 MB / 388.1 MB, free: 7.809 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005812/0.04047, allocations: 3.212 MB / 391.3 MB, free: 4.5 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001801/0.04227, allocations: 0.583 MB / 391.9 MB, free: 3.891 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/0.04353, allocations: 408.7 kB / 392.3 MB, free: 3.484 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.508e-05/0.0436, allocations: 12.5 kB / 392.3 MB, free: 3.473 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001206/0.0448, allocations: 491.8 kB / 392.8 MB, free: 2.969 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.154e-06/0.04481, allocations: 0 / 392.8 MB, free: 2.969 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.0148/0.05961, allocations: 3.602 MB / 396.4 MB, free: 15.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.026e-05/0.0597, allocations: 93.59 kB / 396.4 MB, free: 15.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006868/0.06039, allocations: 0.5181 MB / 397 MB, free: 14.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.435e-05/0.06048, allocations: 41.69 kB / 397 MB, free: 14.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003676/0.06085, allocations: 391.5 kB / 397.4 MB, free: 14.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002656/0.06112, allocations: 234.2 kB / 397.6 MB, free: 14.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002937/0.06141, allocations: 155.9 kB / 397.8 MB, free: 13.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003611/0.06177, allocations: 0.582 MB / 398.3 MB, free: 13.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008233/0.06259, allocations: 315.1 kB / 398.7 MB, free: 12.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009951/0.06359, allocations: 498.1 kB / 399.1 MB, free: 12.41 MB / 378.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.006144/0.06973, allocations: 2.244 MB / 401.4 MB, free: 10.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.06974, allocations: 4 kB / 401.4 MB, free: 10.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.005654/0.07539, allocations: 1.655 MB / 403 MB, free: 8.391 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.828e-05/0.07546, allocations: 45.69 kB / 403.1 MB, free: 8.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.07547, allocations: 4 kB / 403.1 MB, free: 8.336 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004744/0.08022, allocations: 1.553 MB / 404.6 MB, free: 6.777 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005288/0.08075, allocations: 107.8 kB / 404.8 MB, free: 6.672 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0119/0.09265, allocations: 4.209 MB / 409 MB, free: 2.348 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006636/0.09331, allocations: 60 kB / 409 MB, free: 2.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.752e-05/0.09341, allocations: 39.97 kB / 409.1 MB, free: 2.25 MB / 378.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.0004289/0.09384, allocations: 246.5 kB / 409.3 MB, free: 1.996 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001762/0.09401, allocations: 75.66 kB / 409.4 MB, free: 1.922 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005709/0.09972, allocations: 1.517 MB / 410.9 MB, free: 396 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.09973, allocations: 7.938 kB / 410.9 MB, free: 388 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.305e-06/0.09973, allocations: 4 kB / 410.9 MB, free: 384 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.09974, allocations: 7.984 kB / 410.9 MB, free: 376 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007564/0.1073, allocations: 2.409 MB / 413.3 MB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.1073, allocations: 4 kB / 413.3 MB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003785/0.1077, allocations: 75.89 kB / 413.4 MB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004883/0.1126, allocations: 1.568 MB / 415 MB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-05/0.1127, allocations: 19.98 kB / 415 MB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01141/0.1241, allocations: 4.166 MB / 419.1 MB, free: 7.938 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.1241, allocations: 4 kB / 419.2 MB, free: 7.934 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006683/0.1308, allocations: 1.993 MB / 421.1 MB, free: 5.887 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004828/0.1313, allocations: 143.5 kB / 421.3 MB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001278/0.1314, allocations: 35.98 kB / 421.3 MB, free: 5.711 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005613/0.1319, allocations: 59.92 kB / 421.4 MB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004368/0.1324, allocations: 176.1 kB / 421.6 MB, free: 5.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001812/0.1326, allocations: 24.05 kB / 421.6 MB, free: 5.457 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004091/0.133, allocations: 315.1 kB / 421.9 MB, free: 5.148 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.133, allocations: 0 / 421.9 MB, free: 5.148 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008858/0.1339, allocations: 224 kB / 422.1 MB, free: 4.93 MB / 394.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.0002252/0.1341, allocations: 138.5 kB / 422.2 MB, free: 4.789 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003602/0.1377, allocations: 1.266 MB / 423.5 MB, free: 3.488 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1377, allocations: 0 / 423.5 MB, free: 3.488 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002396/0.1401, allocations: 0.7942 MB / 424.3 MB, free: 2.676 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008732/0.141, allocations: 171.5 kB / 424.5 MB, free: 2.516 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002876/0.1438, allocations: 1.455 MB / 425.9 MB, free: 0.9961 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000482/0.1443, allocations: 391.2 kB / 426.3 MB, free: 0.5898 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003222/0.1446, allocations: 92.94 kB / 426.4 MB, free: 0.4961 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.1448, allocations: 52.48 kB / 426.4 MB, free: 456 kB / 394.7 MB Notification: Performance of SimCode: time 7.91e-07/0.1448, allocations: 0 / 426.4 MB, free: 456 kB / 394.7 MB Notification: Performance of Templates: time 0.02813/0.1729, allocations: 15.76 MB / 442.2 MB, free: 0.7578 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile [Timeout 660] (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 240] 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: 5.462391308043152]