Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001597/0.001597, allocations: 112.3 kB / 17.74 MB, free: 5.293 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.001842/0.001842, allocations: 187 kB / 18.67 MB, free: 4.375 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.372/1.372, allocations: 222.9 MB / 242.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1798/0.1798, allocations: 38.04 MB / 330.6 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 67.88 kB / 458.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3687/0.37, allocations: 58.05 MB / 0.5048 GB, free: 7.723 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005176/0.3752, allocations: 3.918 MB / 0.5086 GB, free: 5.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.3766, allocations: 0.8663 MB / 0.5094 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001675/0.3768, allocations: 10.84 kB / 0.5094 GB, free: 4.391 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001953/0.377, allocations: 45.02 kB / 0.5095 GB, free: 4.363 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004874/0.3775, allocations: 174.8 kB / 0.5097 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002127/0.3778, allocations: 87.25 kB / 0.5097 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003973/0.3782, allocations: 374.5 kB / 0.5101 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.3784, allocations: 80.22 kB / 0.5102 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002648/0.3787, allocations: 174.5 kB / 0.5103 GB, free: 3.938 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003281/0.379, allocations: 167.9 kB / 0.5105 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.379, allocations: 17.78 kB / 0.5105 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.067e-05/0.3791, allocations: 16.44 kB / 0.5105 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.3792, allocations: 78.94 kB / 0.5106 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.3794, allocations: 128.4 kB / 0.5107 GB, free: 3.766 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003386/0.3797, allocations: 249.6 kB / 0.511 GB, free: 3.668 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3797, allocations: 5.375 kB / 0.511 GB, free: 3.664 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3797, allocations: 0 / 0.511 GB, free: 3.664 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.3797, allocations: 0 / 0.511 GB, free: 3.664 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008311/0.3806, allocations: 0.5625 MB / 0.5115 GB, free: 3.184 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.3806, allocations: 12.98 kB / 0.5115 GB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.742e-05/0.3807, allocations: 30.44 kB / 0.5116 GB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004161/0.3811, allocations: 317.9 kB / 0.5119 GB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.3811, allocations: 16.44 kB / 0.5119 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.171e-05/0.3812, allocations: 24.91 kB / 0.5119 GB, free: 2.895 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003637/0.3816, allocations: 270 kB / 0.5122 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.3816, allocations: 4.969 kB / 0.5122 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.3816, allocations: 6.312 kB / 0.5122 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.3816, allocations: 12.16 kB / 0.5122 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002574/0.3819, allocations: 161 kB / 0.5123 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009918/0.3829, allocations: 1.171 MB / 0.5135 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001098/0.383, allocations: 84.16 kB / 0.5136 GB, free: 1.578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.44e-05/0.3831, allocations: 38.12 kB / 0.5136 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.153e-05/0.3831, allocations: 1.125 kB / 0.5136 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.558e-05/0.3831, allocations: 32.5 kB / 0.5136 GB, free: 1.508 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.3831, allocations: 0 / 0.5136 GB, free: 1.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005813/0.3837, allocations: 417 kB / 0.514 GB, free: 1.145 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.3837, allocations: 80.11 kB / 0.5141 GB, free: 1.051 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002096/0.3839, allocations: 244.3 kB / 0.5143 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.278e-06/0.384, allocations: 25.7 kB / 0.5144 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.968e-05/0.3841, allocations: 191.7 kB / 0.5145 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.169e-05/0.3841, allocations: 28.09 kB / 0.5146 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.304e-05/0.3841, allocations: 48.92 kB / 0.5146 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.926e-05/0.3842, allocations: 334.6 kB / 0.5149 GB, free: 328 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.788e-05/0.3843, allocations: 27.12 kB / 0.515 GB, free: 320 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.223e-05/0.3843, allocations: 118.7 kB / 0.5151 GB, free: 184 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001639/0.3845, allocations: 163.7 kB / 0.5152 GB, free: 16 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3845, allocations: 1.969 kB / 0.5152 GB, free: 16 kB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002899/0.3848, allocations: 182.9 kB / 0.5154 GB, free: 15.92 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.3848, allocations: 6.281 kB / 0.5154 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.3849, allocations: 11.41 kB / 0.5154 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.3849, allocations: 4.703 kB / 0.5154 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.3851, allocations: 44.48 kB / 0.5155 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.3851, allocations: 10.44 kB / 0.5155 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.666e-05/0.3852, allocations: 7.906 kB / 0.5155 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.723e-05/0.3852, allocations: 11.94 kB / 0.5155 GB, free: 15.89 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 (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.3853, allocations: 149 kB / 0.5156 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.029e-05/0.3854, allocations: 16.72 kB / 0.5157 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001618/0.3856, allocations: 98.88 kB / 0.5158 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3856, allocations: 2.406 kB / 0.5158 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.3856, allocations: 0.7031 kB / 0.5158 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3856, allocations: 5.281 kB / 0.5158 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004869/0.3861, allocations: 422.3 kB / 0.5162 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3861, allocations: 1.031 kB / 0.5162 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.096e-05/0.3862, allocations: 14.95 kB / 0.5162 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.672e-06/0.3862, allocations: 7.266 kB / 0.5162 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-06/0.3862, allocations: 1.062 kB / 0.5162 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.574e-06/0.3862, allocations: 1.438 kB / 0.5162 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3862, allocations: 1.688 kB / 0.5162 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002574/0.3865, allocations: 240.3 kB / 0.5164 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.856e-05/0.3866, allocations: 99.67 kB / 0.5165 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.3866, allocations: 1.125 kB / 0.5165 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.65e-05/0.3867, allocations: 6.609 kB / 0.5165 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.996e-05/0.3867, allocations: 9.328 kB / 0.5165 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.644e-06/0.3867, allocations: 10.22 kB / 0.5165 GB, free: 14.99 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001592/0.3869, allocations: 171.8 kB / 0.5167 GB, free: 14.89 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3869, allocations: 0 / 0.5167 GB, free: 14.89 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003187/0.3872, allocations: 39.16 kB / 0.5167 GB, free: 14.88 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * 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.0001098/0.3874, allocations: 94.44 kB / 0.5168 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001831/0.3875, allocations: 90.59 kB / 0.5169 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3876, allocations: 4.969 kB / 0.5169 GB, free: 14.76 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.561e-05/0.3876, allocations: 31.39 kB / 0.517 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004821/0.3881, allocations: 58.16 kB / 0.517 GB, free: 14.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009203/0.389, allocations: 0.5199 MB / 0.5175 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003426/0.3894, allocations: 0.7583 MB / 0.5183 GB, free: 13.67 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.977e-05/0.3894, allocations: 19.56 kB / 0.5183 GB, free: 13.66 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3895, allocations: 5.281 kB / 0.5183 GB, free: 13.66 MB / 398.1 MB Notification: Performance of Templates: time 0.005654/0.3951, allocations: 2.672 MB / 0.5209 GB, free: 13.4 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches