Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.001421/0.001421, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001547/0.001547, allocations: 211 kB / 24.48 MB, free: 3.938 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 / 258.2 MB, free: 7.777 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.1881/0.1881, allocations: 38.56 MB / 353.2 MB, free: 12.3 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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,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.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,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.Elementary.Inverter") [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.002225/0.002225, allocations: 75.88 kB / 493.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2982, allocations: 62.47 MB / 0.5432 GB, free: 428 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.00831/0.3065, allocations: 6.198 MB / 0.5492 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002563/0.309, allocations: 1.285 MB / 0.5505 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002887/0.3093, allocations: 39.19 kB / 0.5505 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003407/0.3097, allocations: 130.6 kB / 0.5506 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009543/0.3106, allocations: 434.1 kB / 0.5511 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004911/0.3111, allocations: 237.8 kB / 0.5513 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001193/0.3123, allocations: 1.123 MB / 0.5524 GB, free: 9.387 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003902/0.3127, allocations: 248.5 kB / 0.5526 GB, free: 9.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008065/0.3135, allocations: 0.5267 MB / 0.5531 GB, free: 8.938 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007897/0.3143, allocations: 0.5329 MB / 0.5537 GB, free: 8.633 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.3144, allocations: 65.78 kB / 0.5537 GB, free: 8.633 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001541/0.3146, allocations: 65.41 kB / 0.5538 GB, free: 8.633 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003501/0.3149, allocations: 338 kB / 0.5541 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003868/0.3153, allocations: 340.3 kB / 0.5544 GB, free: 8.215 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009891/0.3163, allocations: 0.9225 MB / 0.5553 GB, free: 7.586 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.3163, allocations: 0 / 0.5553 GB, free: 7.586 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3163, allocations: 5.125 kB / 0.5553 GB, free: 7.582 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.3163, allocations: 0 / 0.5553 GB, free: 7.582 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002114/0.3184, allocations: 1.1 MB / 0.5564 GB, free: 6.578 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.3185, allocations: 11.98 kB / 0.5564 GB, free: 6.566 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.3186, allocations: 88.42 kB / 0.5565 GB, free: 6.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/0.3198, allocations: 0.54 MB / 0.557 GB, free: 5.914 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001959/0.32, allocations: 231.6 kB / 0.5572 GB, free: 5.648 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.3201, allocations: 71.97 kB / 0.5573 GB, free: 5.578 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.3217, allocations: 0.8575 MB / 0.5582 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.3218, allocations: 0 / 0.5582 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.948e-05/0.3218, allocations: 28 kB / 0.5582 GB, free: 4.652 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001171/0.322, allocations: 37.28 kB / 0.5582 GB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/0.3232, allocations: 0.6256 MB / 0.5588 GB, free: 3.988 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003866/0.3271, allocations: 2.431 MB / 0.5612 GB, free: 1.477 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001616/0.3287, allocations: 0.5685 MB / 0.5618 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007541/0.3295, allocations: 296.3 kB / 0.562 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.3295, allocations: 16.2 kB / 0.5621 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007448/0.3302, allocations: 350.7 kB / 0.5624 GB, free: 228 kB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.285e-06/0.3302, allocations: 0 / 0.5624 GB, free: 228 kB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004306/0.3345, allocations: 1.68 MB / 0.564 GB, free: 14.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.468e-05/0.3346, allocations: 118.8 kB / 0.5641 GB, free: 14.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005371/0.3352, allocations: 457.8 kB / 0.5646 GB, free: 13.91 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/0.3352, allocations: 37.7 kB / 0.5646 GB, free: 13.86 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003064/0.3355, allocations: 372.4 kB / 0.565 GB, free: 13.49 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001393/0.3357, allocations: 150.8 kB / 0.5651 GB, free: 13.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001822/0.3358, allocations: 118.3 kB / 0.5652 GB, free: 13.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001932/0.336, allocations: 370.8 kB / 0.5656 GB, free: 12.85 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000393/0.3364, allocations: 254.9 kB / 0.5658 GB, free: 12.59 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000523/0.3369, allocations: 424.2 kB / 0.5662 GB, free: 12.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008353/0.3378, allocations: 0.6172 MB / 0.5668 GB, free: 11.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.3378, allocations: 4 kB / 0.5668 GB, free: 11.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001339/0.3391, allocations: 0.8324 MB / 0.5676 GB, free: 10.55 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.227e-05/0.3392, allocations: 53.69 kB / 0.5677 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.3392, allocations: 11.94 kB / 0.5677 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002915/0.3395, allocations: 85.94 kB / 0.5678 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004031/0.3399, allocations: 111.8 kB / 0.5679 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002729/0.3426, allocations: 2.995 MB / 0.5708 GB, free: 7.078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003717/0.343, allocations: 31.94 kB / 0.5709 GB, free: 7.047 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.738e-05/0.3431, allocations: 47.91 kB / 0.5709 GB, free: 7 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004007/0.3435, allocations: 270.3 kB / 0.5712 GB, free: 6.727 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.769e-05/0.3436, allocations: 51.67 kB / 0.5712 GB, free: 6.676 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00151/0.3451, allocations: 0.6283 MB / 0.5718 GB, free: 6.031 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.3451, allocations: 4 kB / 0.5718 GB, free: 6.027 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.3451, allocations: 4 kB / 0.5718 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.3451, allocations: 3.984 kB / 0.5718 GB, free: 6.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002427/0.3475, allocations: 1.285 MB / 0.5731 GB, free: 4.684 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.3475, allocations: 4 kB / 0.5731 GB, free: 4.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003003/0.3478, allocations: 59.91 kB / 0.5731 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002811/0.3481, allocations: 97.64 kB / 0.5732 GB, free: 4.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.286e-05/0.3481, allocations: 19.98 kB / 0.5733 GB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002626/0.3508, allocations: 2.986 MB / 0.5762 GB, free: 1.312 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.3508, allocations: 4.031 kB / 0.5762 GB, free: 1.309 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002123/0.3529, allocations: 0.9971 MB / 0.5772 GB, free: 288 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002452/0.3531, allocations: 91.66 kB / 0.5772 GB, free: 196 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.7e-05/0.3532, allocations: 31.92 kB / 0.5773 GB, free: 164 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003934/0.3536, allocations: 35.95 kB / 0.5773 GB, free: 128 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.886e-05/0.3537, allocations: 35.94 kB / 0.5773 GB, free: 92 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.594e-05/0.3537, allocations: 11.98 kB / 0.5773 GB, free: 80 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003743/0.3541, allocations: 307.1 kB / 0.5776 GB, free: 15.78 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3541, allocations: 0 / 0.5776 GB, free: 15.78 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007225/0.3548, allocations: 152 kB / 0.5778 GB, free: 15.63 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.0001772/0.355, allocations: 134.1 kB / 0.5779 GB, free: 15.49 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.3567, allocations: 0.8874 MB / 0.5788 GB, free: 14.56 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3567, allocations: 3.938 kB / 0.5788 GB, free: 14.56 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009439/0.3576, allocations: 486.1 kB / 0.5792 GB, free: 14.06 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007445/0.3584, allocations: 128 kB / 0.5794 GB, free: 13.94 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.3612, allocations: 1.565 MB / 0.5809 GB, free: 12.32 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.3616, allocations: 370.1 kB / 0.5813 GB, free: 11.93 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.3617, allocations: 47.36 kB / 0.5813 GB, free: 11.89 MB / 430.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3617, allocations: 4 kB / 0.5813 GB, free: 11.88 MB / 430.1 MB Notification: Performance of Templates: time 0.01832/0.3801, allocations: 13.37 MB / 0.5944 GB, free: 14.52 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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: 9.816857625730336]