Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,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.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,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.Introductory.Frequency") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001841/0.001841, 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.514/1.514, allocations: 205.1 MB / 223.1 MB, free: 8.465 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.00109/0.00109, allocations: 108.1 kB / 270.5 MB, free: 8.434 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.181/0.181, allocations: 38.01 MB / 355.8 MB, free: 2.934 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001074/0.001074, allocations: 55.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3656/0.3667, allocations: 55.23 MB / 477.1 MB, free: 9.914 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.008239/0.375, allocations: 6.905 MB / 484 MB, free: 4.977 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003293/0.3783, allocations: 1.594 MB / 485.6 MB, free: 3.832 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000933/0.3793, allocations: 50 kB / 485.6 MB, free: 3.812 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003276/0.3796, allocations: 61.89 kB / 485.7 MB, free: 3.781 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009729/0.3807, allocations: 272.3 kB / 486 MB, free: 3.621 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004272/0.3811, allocations: 122.7 kB / 486.1 MB, free: 3.555 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001096/0.3822, allocations: 0.9544 MB / 487 MB, free: 3.219 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002839/0.3825, allocations: 152.2 kB / 487.2 MB, free: 3.145 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000427/0.3829, allocations: 272.3 kB / 487.5 MB, free: 3.027 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006642/0.3836, allocations: 349 kB / 487.8 MB, free: 2.895 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.15e-05/0.3837, allocations: 22 kB / 487.8 MB, free: 2.895 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.946e-05/0.3838, allocations: 23.38 kB / 487.8 MB, free: 2.895 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001721/0.384, allocations: 149.4 kB / 488 MB, free: 2.84 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002325/0.3842, allocations: 230.3 kB / 488.2 MB, free: 2.711 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005109/0.3847, allocations: 472 kB / 488.7 MB, free: 2.523 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3847, allocations: 3.938 kB / 488.7 MB, free: 2.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.3847, allocations: 1.125 kB / 488.7 MB, free: 2.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.625e-06/0.3847, allocations: 0 / 488.7 MB, free: 2.52 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001532/0.3863, allocations: 0.7954 MB / 489.5 MB, free: 1.926 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.3863, allocations: 9.594 kB / 489.5 MB, free: 1.926 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.3865, allocations: 53.66 kB / 489.5 MB, free: 1.898 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007833/0.3873, allocations: 428.3 kB / 490 MB, free: 1.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.524e-05/0.3873, allocations: 32.27 kB / 490 MB, free: 1.574 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.392e-05/0.3874, allocations: 36.03 kB / 490 MB, free: 1.562 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009115/0.3883, allocations: 459.1 kB / 490.5 MB, free: 1.312 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/0.3884, allocations: 9.25 kB / 490.5 MB, free: 1.305 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.215e-05/0.3884, allocations: 16.56 kB / 490.5 MB, free: 1.293 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/0.3884, allocations: 13.22 kB / 490.5 MB, free: 1.289 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006061/0.389, allocations: 308.6 kB / 490.8 MB, free: 1.191 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.3913, allocations: 1.766 MB / 492.6 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.3916, allocations: 149.2 kB / 492.7 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.3917, allocations: 53.77 kB / 492.8 MB, free: 15.65 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/0.3918, allocations: 6.844 kB / 492.8 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.3918, allocations: 40.3 kB / 492.8 MB, free: 15.6 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.415e-06/0.3918, allocations: 1.156 kB / 492.8 MB, free: 15.6 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.001295/0.3931, allocations: 0.6033 MB / 493.4 MB, free: 15.11 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.26e-05/0.3932, allocations: 110.6 kB / 493.5 MB, free: 14.98 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000514/0.3937, allocations: 373.3 kB / 493.9 MB, free: 14.79 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.3938, allocations: 31.2 kB / 493.9 MB, free: 14.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002256/0.394, allocations: 281.9 kB / 494.2 MB, free: 14.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.659e-05/0.3941, allocations: 57.09 kB / 494.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.144e-05/0.3942, allocations: 60.48 kB / 494.3 MB, free: 14.44 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3943, allocations: 347.7 kB / 494.7 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.383e-05/0.3944, allocations: 49.14 kB / 494.7 MB, free: 14.1 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.3946, allocations: 201.8 kB / 494.9 MB, free: 13.88 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003221/0.395, allocations: 266.5 kB / 495.2 MB, free: 13.63 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.395, allocations: 1.469 kB / 495.2 MB, free: 13.63 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004732/0.3954, allocations: 284.7 kB / 495.4 MB, free: 13.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.3955, allocations: 8.469 kB / 495.4 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.3955, allocations: 4.75 kB / 495.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.127e-05/0.3955, allocations: 7.5 kB / 495.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002685/0.3958, allocations: 72.7 kB / 495.5 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.926e-05/0.3958, allocations: 12.8 kB / 495.5 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001718/0.396, allocations: 14.64 kB / 495.6 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.63e-05/0.3961, allocations: 17.05 kB / 495.6 MB, free: 13.47 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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.0002101/0.3963, allocations: 187 kB / 495.8 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.177e-05/0.3964, allocations: 33.38 kB / 495.8 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003121/0.3967, allocations: 172.4 kB / 496 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3967, allocations: 7.344 kB / 496 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.3967, allocations: 1.719 kB / 496 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3967, allocations: 1.891 kB / 496 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008346/0.3976, allocations: 0.5286 MB / 496.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3976, allocations: 1.688 kB / 496.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001908/0.3978, allocations: 32.52 kB / 496.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.3978, allocations: 1.75 kB / 496.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.513e-05/0.3978, allocations: 11.45 kB / 496.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/0.3978, allocations: 1.891 kB / 496.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.3978, allocations: 17.34 kB / 496.6 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00266/0.4005, allocations: 1.885 MB / 498.4 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.4006, allocations: 108.1 kB / 498.6 MB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.477e-05/0.4007, allocations: 10.92 kB / 498.6 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.4008, allocations: 2.25 kB / 498.6 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.1e-05/0.4009, allocations: 17.92 kB / 498.6 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.4009, allocations: 5.422 kB / 498.6 MB, free: 11.14 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003534/0.4013, allocations: 255.2 kB / 498.8 MB, free: 11.01 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4013, allocations: 0 / 498.8 MB, free: 11.01 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006349/0.4019, allocations: 103.4 kB / 498.9 MB, free: 11 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.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 (18): * Single equations (assignments): 17 * 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.0001453/0.4021, allocations: 106.3 kB / 499 MB, free: 10.9 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003637/0.4024, allocations: 157.9 kB / 499.2 MB, free: 10.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.4025, allocations: 1.156 kB / 499.2 MB, free: 10.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.4026, allocations: 62.8 kB / 499.3 MB, free: 10.82 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007102/0.4033, allocations: 89.02 kB / 499.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.4052, allocations: 1.193 MB / 0.4888 GB, free: 9.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006281/0.4059, allocations: 0.8443 MB / 0.4896 GB, free: 9.219 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002438/0.4061, allocations: 52.7 kB / 0.4897 GB, free: 9.203 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.779e-05/0.4062, allocations: 29.69 kB / 0.4897 GB, free: 9.195 MB / 330.7 MB Notification: Performance of SimCode: time 1.242e-06/0.4062, allocations: 1.281 kB / 0.4897 GB, free: 9.195 MB / 330.7 MB Notification: Performance of Templates: time 0.009384/0.4156, allocations: 3.391 MB / 0.493 GB, free: 7.805 MB / 330.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches