Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.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.Transformation.OnePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase") translateModel(PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 111.8 kB / 17.74 MB, free: 5.34 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.001478/0.001478, allocations: 193.6 kB / 18.68 MB, free: 4.41 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.368/1.368, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.175/0.175, allocations: 38.04 MB / 330.6 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 59.91 kB / 458.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.3694, allocations: 58.06 MB / 0.5048 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase): time 0.006625/0.376, allocations: 5.494 MB / 0.5101 GB, free: 3.949 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002367/0.3785, allocations: 1.303 MB / 0.5114 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003243/0.3788, allocations: 18.62 kB / 0.5114 GB, free: 3.023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005024/0.3793, allocations: 138.6 kB / 0.5116 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009574/0.3803, allocations: 371.5 kB / 0.5119 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003859/0.3807, allocations: 137.6 kB / 0.512 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008829/0.3816, allocations: 0.7447 MB / 0.5128 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000355/0.382, allocations: 208.5 kB / 0.513 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005844/0.3826, allocations: 346.2 kB / 0.5133 GB, free: 2.102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006653/0.3832, allocations: 376.7 kB / 0.5137 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.537e-05/0.3833, allocations: 35.97 kB / 0.5137 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.3834, allocations: 36.88 kB / 0.5137 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002372/0.3837, allocations: 196.7 kB / 0.5139 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002509/0.3839, allocations: 250.8 kB / 0.5141 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006562/0.3846, allocations: 0.524 MB / 0.5147 GB, free: 1.539 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3846, allocations: 4.75 kB / 0.5147 GB, free: 1.535 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3846, allocations: 0 / 0.5147 GB, free: 1.535 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.3846, allocations: 1.062 kB / 0.5147 GB, free: 1.535 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001321/0.386, allocations: 0.8057 MB / 0.5155 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.386, allocations: 13.12 kB / 0.5155 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.3861, allocations: 55.03 kB / 0.5155 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007413/0.3869, allocations: 487.9 kB / 0.516 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.144e-05/0.3869, allocations: 33.22 kB / 0.516 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.124e-05/0.387, allocations: 36.22 kB / 0.516 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007596/0.3878, allocations: 0.5003 MB / 0.5165 GB, free: 300 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.3878, allocations: 1.156 kB / 0.5165 GB, free: 300 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.993e-05/0.3878, allocations: 16.69 kB / 0.5166 GB, free: 288 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-05/0.3879, allocations: 19.47 kB / 0.5166 GB, free: 288 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006505/0.3885, allocations: 369.6 kB / 0.5169 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002908/0.3914, allocations: 2.077 MB / 0.519 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004454/0.3919, allocations: 238.1 kB / 0.5192 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002517/0.3922, allocations: 137.3 kB / 0.5193 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.3922, allocations: 6.312 kB / 0.5193 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.3922, allocations: 36.61 kB / 0.5194 GB, free: 14.35 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 2.004e-06/0.3923, allocations: 1 kB / 0.5194 GB, free: 14.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.00141/0.3937, allocations: 0.7539 MB / 0.5201 GB, free: 13.83 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.614e-05/0.3937, allocations: 89.75 kB / 0.5202 GB, free: 13.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004541/0.3942, allocations: 386.5 kB / 0.5205 GB, free: 13.53 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.3942, allocations: 30.89 kB / 0.5206 GB, free: 13.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002109/0.3944, allocations: 288 kB / 0.5208 GB, free: 13.26 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.16e-05/0.3945, allocations: 85.89 kB / 0.5209 GB, free: 13.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.3947, allocations: 79.22 kB / 0.521 GB, free: 13.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.3948, allocations: 348.7 kB / 0.5213 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/0.395, allocations: 89.09 kB / 0.5214 GB, free: 12.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000283/0.3953, allocations: 281.2 kB / 0.5217 GB, free: 12.51 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004736/0.3957, allocations: 400.6 kB / 0.5221 GB, free: 12.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.3958, allocations: 6.156 kB / 0.5221 GB, free: 12.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007543/0.3965, allocations: 450.7 kB / 0.5225 GB, free: 11.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.3965, allocations: 8.156 kB / 0.5225 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.3966, allocations: 6.844 kB / 0.5225 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002105/0.3968, allocations: 56.28 kB / 0.5226 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.397, allocations: 79.66 kB / 0.5227 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.3985, allocations: 1.609 MB / 0.5242 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002462/0.3988, allocations: 20.5 kB / 0.5242 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.81e-05/0.3988, allocations: 25.88 kB / 0.5243 GB, free: 10.41 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002738/0.3991, allocations: 200.2 kB / 0.5245 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.679e-05/0.3992, allocations: 45.34 kB / 0.5245 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003973/0.3996, allocations: 237.6 kB / 0.5247 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.3996, allocations: 2.156 kB / 0.5247 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-06/0.3996, allocations: 1.25 kB / 0.5247 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.3996, allocations: 2.578 kB / 0.5247 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.4007, allocations: 0.6943 MB / 0.5254 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.4007, allocations: 1.344 kB / 0.5254 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002247/0.4009, allocations: 47.14 kB / 0.5255 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.4009, allocations: 3 kB / 0.5255 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.4009, allocations: 1.562 kB / 0.5255 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.4009, allocations: 3.75 kB / 0.5255 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.401, allocations: 8 kB / 0.5255 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004925/0.4014, allocations: 425.8 kB / 0.5259 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.4016, allocations: 124.1 kB / 0.526 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.339e-05/0.4016, allocations: 7.5 kB / 0.526 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.4018, allocations: 17.05 kB / 0.526 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.412e-05/0.4018, allocations: 14.94 kB / 0.526 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.4018, allocations: 6.25 kB / 0.526 GB, free: 9.219 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003227/0.4022, allocations: 259.3 kB / 0.5263 GB, free: 9.094 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4022, allocations: 3.938 kB / 0.5263 GB, free: 9.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004945/0.4027, allocations: 85.78 kB / 0.5264 GB, free: 9.082 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (trafo.i1) * 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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001178/0.4028, allocations: 104.3 kB / 0.5265 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006784/0.4035, allocations: 383.3 kB / 0.5268 GB, free: 8.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4035, allocations: 1.312 kB / 0.5268 GB, free: 8.785 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001474/0.4036, allocations: 93.34 kB / 0.5269 GB, free: 8.754 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006326/0.4043, allocations: 101.1 kB / 0.527 GB, free: 8.711 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001473/0.4058, allocations: 0.8876 MB / 0.5279 GB, free: 8.176 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005083/0.4063, allocations: 0.8567 MB / 0.5287 GB, free: 7.457 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.82e-05/0.4064, allocations: 34.98 kB / 0.5288 GB, free: 7.449 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4064, allocations: 0 / 0.5288 GB, free: 7.449 MB / 398.1 MB Notification: Performance of Templates: time 0.01195/0.4183, allocations: 5.972 MB / 0.5346 GB, free: 5.395 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches