Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) 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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 116 kB / 17.07 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001807/0.001807, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.483/1.483, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1782/0.1782, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 68.06 kB / 458.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.465/0.4662, allocations: 58.05 MB / 0.5041 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.007706/0.474, allocations: 6.255 MB / 0.5102 GB, free: 3.453 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003253/0.4773, allocations: 1.421 MB / 0.5116 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005334/0.4778, allocations: 26.78 kB / 0.5116 GB, free: 2.441 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006919/0.4786, allocations: 140.4 kB / 0.5118 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001259/0.4799, allocations: 414.8 kB / 0.5122 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006294/0.4805, allocations: 197 kB / 0.5123 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001494/0.482, allocations: 1.088 MB / 0.5134 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006326/0.4827, allocations: 358.5 kB / 0.5138 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001104/0.4838, allocations: 469.1 kB / 0.5142 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001138/0.4849, allocations: 0.5221 MB / 0.5147 GB, free: 1.016 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001373/0.4851, allocations: 69.06 kB / 0.5148 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001929/0.4853, allocations: 65.59 kB / 0.5148 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004383/0.4857, allocations: 307.7 kB / 0.5151 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004282/0.4861, allocations: 365.6 kB / 0.5155 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001209/0.4874, allocations: 0.8411 MB / 0.5163 GB, free: 384 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4874, allocations: 4.5 kB / 0.5163 GB, free: 380 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4874, allocations: 0.5312 kB / 0.5163 GB, free: 380 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.4874, allocations: 0 / 0.5163 GB, free: 380 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002619/0.49, allocations: 1.008 MB / 0.5173 GB, free: 15.69 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.089e-05/0.4901, allocations: 9.094 kB / 0.5173 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002251/0.4903, allocations: 72.97 kB / 0.5174 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0014/0.4918, allocations: 0.5803 MB / 0.5179 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002079/0.492, allocations: 117.9 kB / 0.518 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.4921, allocations: 59.97 kB / 0.5181 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001788/0.4939, allocations: 0.7708 MB / 0.5189 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.4939, allocations: 0 / 0.5189 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.912e-05/0.494, allocations: 25.75 kB / 0.5189 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000154/0.4942, allocations: 34.03 kB / 0.5189 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001894/0.4961, allocations: 0.7196 MB / 0.5196 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004794/0.5009, allocations: 2.603 MB / 0.5222 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001671/0.5026, allocations: 0.7971 MB / 0.5229 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007768/0.5034, allocations: 407 kB / 0.5233 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.793e-05/0.5034, allocations: 9.344 kB / 0.5233 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.298e-05/0.5035, allocations: 37.75 kB / 0.5234 GB, free: 12.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 3.557e-06/0.5035, allocations: 0 / 0.5234 GB, free: 12.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.005193/0.5087, allocations: 2.14 MB / 0.5255 GB, free: 11.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.907e-05/0.5088, allocations: 84.25 kB / 0.5255 GB, free: 11.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005553/0.5094, allocations: 393.6 kB / 0.5259 GB, free: 10.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.156e-05/0.5094, allocations: 35.98 kB / 0.526 GB, free: 10.94 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002414/0.5097, allocations: 286.8 kB / 0.5262 GB, free: 10.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.5099, allocations: 179.6 kB / 0.5264 GB, free: 10.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001917/0.5101, allocations: 103.8 kB / 0.5265 GB, free: 10.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.5103, allocations: 359.5 kB / 0.5268 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006182/0.5109, allocations: 275.9 kB / 0.5271 GB, free: 10.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006349/0.5115, allocations: 385.1 kB / 0.5275 GB, free: 9.883 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/0.5128, allocations: 0.6462 MB / 0.5281 GB, free: 9.562 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.5128, allocations: 1.406 kB / 0.5281 GB, free: 9.562 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001702/0.5145, allocations: 0.8732 MB / 0.529 GB, free: 9.156 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.5145, allocations: 5.562 kB / 0.529 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.5146, allocations: 3.5 kB / 0.529 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002867/0.5149, allocations: 77 kB / 0.529 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/0.5163, allocations: 306 kB / 0.5293 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00889/0.5252, allocations: 6.526 MB / 0.5357 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009377/0.5262, allocations: 45.25 kB / 0.5357 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.758e-05/0.5263, allocations: 21.75 kB / 0.5358 GB, free: 2.707 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006717/0.527, allocations: 235.7 kB / 0.536 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.5271, allocations: 54.44 kB / 0.536 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002224/0.5294, allocations: 0.8223 MB / 0.5368 GB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.5294, allocations: 5.625 kB / 0.5368 GB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.5294, allocations: 9.172 kB / 0.5369 GB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.138e-06/0.5294, allocations: 1.188 kB / 0.5369 GB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004308/0.5337, allocations: 1.691 MB / 0.5385 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/0.5338, allocations: 1.5 kB / 0.5385 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002318/0.5361, allocations: 326.5 kB / 0.5388 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003913/0.5365, allocations: 91.47 kB / 0.5389 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-05/0.5366, allocations: 14.41 kB / 0.5389 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003418/0.54, allocations: 3.157 MB / 0.542 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.5401, allocations: 2.375 kB / 0.542 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003368/0.5434, allocations: 1.312 MB / 0.5433 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003069/0.5438, allocations: 127.1 kB / 0.5434 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.5439, allocations: 26.31 kB / 0.5434 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005254/0.5444, allocations: 34.52 kB / 0.5435 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001977/0.5446, allocations: 48.41 kB / 0.5435 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-05/0.5447, allocations: 19.33 kB / 0.5435 GB, free: 12.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00055/0.5453, allocations: 277.6 kB / 0.5438 GB, free: 12.25 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5453, allocations: 0 / 0.5438 GB, free: 12.25 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001193/0.5465, allocations: 147 kB / 0.5439 GB, free: 12.24 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * 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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002401/0.5467, allocations: 121.4 kB / 0.5441 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003877/0.5506, allocations: 1.09 MB / 0.5451 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.5506, allocations: 0 / 0.5451 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002694/0.5533, allocations: 0.7968 MB / 0.5459 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/0.5546, allocations: 141.6 kB / 0.546 GB, free: 10.94 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004499/0.5591, allocations: 1.586 MB / 0.5476 GB, free: 9.926 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007408/0.5599, allocations: 0.9437 MB / 0.5485 GB, free: 9.105 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005933/0.5605, allocations: 126.7 kB / 0.5486 GB, free: 9.051 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.5607, allocations: 42.91 kB / 0.5487 GB, free: 9.043 MB / 414.1 MB Notification: Performance of SimCode: time 8.81e-07/0.5607, allocations: 0 / 0.5487 GB, free: 9.043 MB / 414.1 MB Notification: Performance of Templates: time 0.01751/0.5782, allocations: 7.942 MB / 0.5564 GB, free: 1.395 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches