Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier") translateModel(PowerSystems.Examples.AC3ph.Elementary.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001233/0.001233, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.557/1.557, allocations: 205.1 MB / 223.1 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 96.66 kB / 270.5 MB, free: 8.438 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.172/0.172, allocations: 38.01 MB / 355.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001058/0.001059, allocations: 51.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3772/0.3783, allocations: 55.24 MB / 477.1 MB, free: 9.914 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Rectifier): time 0.009979/0.3883, allocations: 7.797 MB / 484.9 MB, free: 4.402 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005389/0.3938, allocations: 2.539 MB / 487.4 MB, free: 2.617 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009279/0.3947, allocations: 47.06 kB / 487.5 MB, free: 2.598 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001492/0.3963, allocations: 485.9 kB / 488 MB, free: 2.316 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001762/0.3981, allocations: 0.5089 MB / 488.5 MB, free: 2.055 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001196/0.3993, allocations: 325.3 kB / 488.8 MB, free: 1.898 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002773/0.4021, allocations: 1.854 MB / 490.6 MB, free: 1.293 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001176/0.4032, allocations: 0.6403 MB / 491.3 MB, free: 1.027 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001199/0.4045, allocations: 479.7 kB / 491.7 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001289/0.4058, allocations: 0.7055 MB / 492.4 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000141/0.4059, allocations: 59.69 kB / 492.5 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001565/0.4075, allocations: 0.5147 MB / 493 MB, free: 496 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007417/0.4082, allocations: 432.5 kB / 493.4 MB, free: 356 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007115/0.409, allocations: 485.4 kB / 493.9 MB, free: 84 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002328/0.4113, allocations: 1.412 MB / 495.3 MB, free: 15.57 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.4113, allocations: 4 kB / 495.3 MB, free: 15.56 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4113, allocations: 1.312 kB / 495.3 MB, free: 15.56 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.4113, allocations: 0 / 495.3 MB, free: 15.56 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.003506/0.4149, allocations: 1.34 MB / 496.7 MB, free: 14.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.4149, allocations: 9.562 kB / 496.7 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008596/0.4158, allocations: 147.3 kB / 496.8 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00164/0.4174, allocations: 0.6576 MB / 497.5 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002628/0.4177, allocations: 172.6 kB / 497.7 MB, free: 13.88 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002452/0.418, allocations: 98.52 kB / 497.8 MB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002756/0.4207, allocations: 1.357 MB / 499.1 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.103e-05/0.4208, allocations: 5.031 kB / 499.1 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/0.4209, allocations: 36.64 kB / 499.1 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001765/0.4211, allocations: 58.64 kB / 499.2 MB, free: 12.94 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002884/0.424, allocations: 1.3 MB / 0.4888 GB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008546/0.4325, allocations: 4.92 MB / 0.4936 GB, free: 8.551 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002454/0.435, allocations: 1.141 MB / 0.4947 GB, free: 7.891 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001274/0.4363, allocations: 0.633 MB / 0.4953 GB, free: 7.566 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.343e-05/0.4364, allocations: 11.42 kB / 0.4953 GB, free: 7.559 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.335e-05/0.4364, allocations: 41.88 kB / 0.4954 GB, free: 7.512 MB / 330.7 MB Notification: Performance of pre-optimization done (n=72): time 3.727e-06/0.4365, allocations: 0 / 0.4954 GB, free: 7.512 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.006499/0.443, allocations: 3.177 MB / 0.4985 GB, free: 5.137 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.576e-05/0.443, allocations: 89.61 kB / 0.4986 GB, free: 5.031 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006372/0.4437, allocations: 469.8 kB / 0.499 GB, free: 4.562 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.811e-05/0.4438, allocations: 41.72 kB / 0.499 GB, free: 4.516 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002737/0.4441, allocations: 391.4 kB / 0.4994 GB, free: 4.125 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002337/0.4443, allocations: 252.3 kB / 0.4997 GB, free: 3.875 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000269/0.4446, allocations: 150.6 kB / 0.4998 GB, free: 3.723 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.4448, allocations: 378.8 kB / 0.5002 GB, free: 3.344 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009945/0.4458, allocations: 0.4899 MB / 0.5006 GB, free: 2.852 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001197/0.447, allocations: 0.6795 MB / 0.5013 GB, free: 2.094 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00226/0.4493, allocations: 1.22 MB / 0.5025 GB, free: 0.793 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.4493, allocations: 3.938 kB / 0.5025 GB, free: 0.7891 MB / 330.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.004596/0.4539, allocations: 1.974 MB / 0.5044 GB, free: 14.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.4539, allocations: 9.875 kB / 0.5044 GB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003991/0.4579, allocations: 1.711 MB / 0.5061 GB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001926/0.4599, allocations: 0.6616 MB / 0.5067 GB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006489/0.4605, allocations: 155.8 kB / 0.5069 GB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01137/0.4719, allocations: 6.762 MB / 0.5135 GB, free: 5.191 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009933/0.473, allocations: 75.91 kB / 0.5136 GB, free: 5.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001786/0.4732, allocations: 31.98 kB / 0.5136 GB, free: 5.086 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (76): * Single equations (assignments): 73 * Array equations: 1 * Algorithm blocks: 0 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0008259/0.474, allocations: 317.6 kB / 0.5139 GB, free: 4.766 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002849/0.4743, allocations: 59.25 kB / 0.514 GB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002875/0.4772, allocations: 1.293 MB / 0.5152 GB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-05/0.4772, allocations: 12 kB / 0.5152 GB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.4772, allocations: 0 / 0.5152 GB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.646e-05/0.4773, allocations: 19.92 kB / 0.5153 GB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005144/0.4824, allocations: 2.398 MB / 0.5176 GB, free: 0.8672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.4824, allocations: 8.094 kB / 0.5176 GB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002707/0.4852, allocations: 499.2 kB / 0.5181 GB, free: 380 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000137/0.4853, allocations: 32.84 kB / 0.5181 GB, free: 344 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.635e-05/0.4854, allocations: 23.92 kB / 0.5181 GB, free: 320 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/0.4868, allocations: 1.47 MB / 0.5196 GB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4868, allocations: 96 / 0.5196 GB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02172/0.5085, allocations: 11.59 MB / 0.5309 GB, free: 2.727 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002161/0.5088, allocations: 136.2 kB / 0.531 GB, free: 2.574 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002181/0.509, allocations: 19.94 kB / 0.531 GB, free: 2.555 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006616/0.5097, allocations: 64 kB / 0.5311 GB, free: 2.492 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002579/0.51, allocations: 60.47 kB / 0.5312 GB, free: 2.434 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.541e-05/0.51, allocations: 23.94 kB / 0.5312 GB, free: 2.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004683/0.5105, allocations: 322.8 kB / 0.5315 GB, free: 2.098 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5105, allocations: 0 / 0.5315 GB, free: 2.098 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001611/0.5122, allocations: 308 kB / 0.5318 GB, free: 1.797 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],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 (67): * Single equations (assignments): 64 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(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.0003207/0.5125, allocations: 143.2 kB / 0.5319 GB, free: 1.648 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003243/0.5157, allocations: 1.544 MB / 0.5334 GB, free: 76 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.5158, allocations: 0 / 0.5334 GB, free: 76 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002881/0.5186, allocations: 1.006 MB / 0.5344 GB, free: 15.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.5199, allocations: 153.9 kB / 0.5346 GB, free: 14.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006038/0.5259, allocations: 3.223 MB / 0.5377 GB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001279/0.5272, allocations: 1.099 MB / 0.5388 GB, free: 10.49 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001029/0.5283, allocations: 225.5 kB / 0.539 GB, free: 10.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003858/0.5287, allocations: 59.42 kB / 0.5391 GB, free: 10.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.173e-06/0.5287, allocations: 0 / 0.5391 GB, free: 10.21 MB / 378.7 MB Notification: Performance of Templates: time 0.03086/0.5596, allocations: 15.57 MB / 0.5543 GB, free: 10.64 MB / 394.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Rectifier.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches