Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.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.Elementary.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.Elementary.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.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.Elementary.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 108.9 kB / 17.06 MB, free: 6.012 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.001392/0.001392, allocations: 191 kB / 18 MB, free: 5.098 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.407/1.407, 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.176/0.176, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 59.91 kB / 458.2 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.3872, allocations: 58.06 MB / 0.5041 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.007906/0.3952, allocations: 6.341 MB / 0.5103 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00264/0.3979, allocations: 1.442 MB / 0.5117 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003086/0.3982, allocations: 21.81 kB / 0.5117 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005306/0.3987, allocations: 148.1 kB / 0.5119 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009434/0.3997, allocations: 432.4 kB / 0.5123 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005906/0.4003, allocations: 209.6 kB / 0.5125 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001301/0.4016, allocations: 1.125 MB / 0.5136 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004873/0.4021, allocations: 357.5 kB / 0.5139 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007072/0.4028, allocations: 486.7 kB / 0.5144 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008501/0.4037, allocations: 0.5325 MB / 0.5149 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.4038, allocations: 65.62 kB / 0.515 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000157/0.404, allocations: 69.56 kB / 0.515 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004057/0.4044, allocations: 313.5 kB / 0.5153 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000383/0.4048, allocations: 375.9 kB / 0.5157 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001322/0.4061, allocations: 0.8721 MB / 0.5166 GB, free: 204 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.882e-06/0.4061, allocations: 0.6562 kB / 0.5166 GB, free: 204 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4061, allocations: 4 kB / 0.5166 GB, free: 200 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.473e-05/0.4062, allocations: 0 / 0.5166 GB, free: 200 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002539/0.4087, allocations: 1.021 MB / 0.5176 GB, free: 15.51 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.4088, allocations: 9.719 kB / 0.5176 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.409, allocations: 73.59 kB / 0.5176 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/0.4103, allocations: 0.5922 MB / 0.5182 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001992/0.4105, allocations: 119.3 kB / 0.5183 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/0.4106, allocations: 51.19 kB / 0.5184 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001761/0.4124, allocations: 0.7906 MB / 0.5191 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.4124, allocations: 1.406 kB / 0.5192 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.839e-05/0.4125, allocations: 25.97 kB / 0.5192 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000135/0.4126, allocations: 38.53 kB / 0.5192 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001552/0.4142, allocations: 0.6884 MB / 0.5199 GB, free: 14.4 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004947/0.4191, allocations: 2.697 MB / 0.5225 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002169/0.4213, allocations: 0.8752 MB / 0.5234 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007994/0.4221, allocations: 330.6 kB / 0.5237 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.881e-05/0.4222, allocations: 4.922 kB / 0.5237 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.991e-05/0.4223, allocations: 41.06 kB / 0.5237 GB, free: 12.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 3.206e-06/0.4223, allocations: 0 / 0.5237 GB, free: 12.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.004871/0.4272, allocations: 1.936 MB / 0.5256 GB, free: 11.05 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.009e-05/0.4273, allocations: 85.67 kB / 0.5257 GB, free: 10.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005924/0.4279, allocations: 423.7 kB / 0.5261 GB, free: 10.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.805e-05/0.4279, allocations: 32.08 kB / 0.5261 GB, free: 10.72 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002587/0.4282, allocations: 314.4 kB / 0.5264 GB, free: 10.47 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.4283, allocations: 147.3 kB / 0.5266 GB, free: 10.35 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.4285, allocations: 84.42 kB / 0.5267 GB, free: 10.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002148/0.4287, allocations: 358 kB / 0.527 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005715/0.4293, allocations: 235.9 kB / 0.5272 GB, free: 9.906 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006719/0.43, allocations: 351 kB / 0.5276 GB, free: 9.699 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/0.4311, allocations: 0.5762 MB / 0.5281 GB, free: 9.391 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.4312, allocations: 1.188 kB / 0.5281 GB, free: 9.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001455/0.4326, allocations: 0.7872 MB / 0.5289 GB, free: 9.016 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.4326, allocations: 8.406 kB / 0.5289 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.4327, allocations: 3.969 kB / 0.5289 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002851/0.433, allocations: 77.2 kB / 0.529 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001428/0.4344, allocations: 287.6 kB / 0.5293 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006425/0.4408, allocations: 6.506 MB / 0.5356 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004822/0.4413, allocations: 34.78 kB / 0.5356 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.268e-05/0.4414, allocations: 18.28 kB / 0.5357 GB, free: 2.629 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (54): * Single equations (assignments): 50 * 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.0004255/0.4418, allocations: 246.4 kB / 0.5359 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.4419, allocations: 50.22 kB / 0.5359 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001354/0.4433, allocations: 0.7336 MB / 0.5367 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.4433, allocations: 4.75 kB / 0.5367 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.4433, allocations: 1.469 kB / 0.5367 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4433, allocations: 1.344 kB / 0.5367 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00262/0.446, allocations: 1.495 MB / 0.5381 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.446, allocations: 5.344 kB / 0.5381 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001484/0.4475, allocations: 303.9 kB / 0.5384 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002587/0.4477, allocations: 86.09 kB / 0.5385 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.692e-05/0.4478, allocations: 16.38 kB / 0.5385 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0025/0.4503, allocations: 3.156 MB / 0.5416 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.4503, allocations: 5.312 kB / 0.5416 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002056/0.4524, allocations: 1.127 MB / 0.5427 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002149/0.4526, allocations: 114.9 kB / 0.5428 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.162e-05/0.4527, allocations: 16.62 kB / 0.5428 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003184/0.453, allocations: 27.28 kB / 0.5429 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.4532, allocations: 45.91 kB / 0.5429 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.77e-05/0.4532, allocations: 12.56 kB / 0.5429 GB, free: 12.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003854/0.4536, allocations: 296.7 kB / 0.5432 GB, free: 12.46 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.4536, allocations: 0 / 0.5432 GB, free: 12.46 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007689/0.4544, allocations: 141.6 kB / 0.5433 GB, free: 12.44 MB / 414.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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 36 * 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.0001692/0.4546, allocations: 104.1 kB / 0.5434 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002392/0.457, allocations: 0.9919 MB / 0.5444 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.457, allocations: 0 / 0.5444 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001764/0.4588, allocations: 0.7372 MB / 0.5451 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007293/0.4595, allocations: 154.2 kB / 0.5453 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002608/0.4621, allocations: 1.411 MB / 0.5466 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007144/0.4629, allocations: 0.9438 MB / 0.5476 GB, free: 9.484 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003967/0.4633, allocations: 98.42 kB / 0.5477 GB, free: 9.445 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.4634, allocations: 40.42 kB / 0.5477 GB, free: 9.434 MB / 414.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4634, allocations: 0 / 0.5477 GB, free: 9.434 MB / 414.1 MB Notification: Performance of Templates: time 0.01571/0.4792, allocations: 7.782 MB / 0.5553 GB, free: 2.527 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches