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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 105.2 kB / 17.74 MB, free: 5.312 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.001353/0.001353, allocations: 188.3 kB / 18.67 MB, free: 4.395 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.303/1.303, allocations: 222.9 MB / 242.4 MB, free: 15.16 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.03 MB / 330.6 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 67.89 kB / 458.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2974, allocations: 58.04 MB / 0.5048 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.006078/0.3035, allocations: 5.448 MB / 0.5101 GB, free: 3.953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.3052, allocations: 1.104 MB / 0.5111 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001942/0.3054, allocations: 18.12 kB / 0.5112 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000227/0.3057, allocations: 82.77 kB / 0.5112 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005916/0.3063, allocations: 293.8 kB / 0.5115 GB, free: 2.938 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002597/0.3065, allocations: 144.5 kB / 0.5117 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000626/0.3072, allocations: 0.699 MB / 0.5123 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.3074, allocations: 179.4 kB / 0.5125 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003659/0.3078, allocations: 319.9 kB / 0.5128 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004615/0.3083, allocations: 337.6 kB / 0.5131 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.216e-05/0.3083, allocations: 32.84 kB / 0.5132 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.094e-05/0.3084, allocations: 33.19 kB / 0.5132 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001991/0.3086, allocations: 153 kB / 0.5134 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002412/0.3089, allocations: 239.5 kB / 0.5136 GB, free: 1.992 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005211/0.3094, allocations: 498.5 kB / 0.5141 GB, free: 1.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3094, allocations: 4 kB / 0.5141 GB, free: 1.785 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3094, allocations: 0 / 0.5141 GB, free: 1.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.3095, allocations: 0 / 0.5141 GB, free: 1.785 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001199/0.3107, allocations: 0.7918 MB / 0.5148 GB, free: 1.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3107, allocations: 8.766 kB / 0.5148 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.864e-05/0.3108, allocations: 53.84 kB / 0.5149 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007036/0.3115, allocations: 464.7 kB / 0.5153 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.3115, allocations: 28.19 kB / 0.5154 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.701e-05/0.3116, allocations: 36.81 kB / 0.5154 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000601/0.3122, allocations: 458.8 kB / 0.5158 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.3123, allocations: 4.469 kB / 0.5158 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.342e-05/0.3123, allocations: 15.91 kB / 0.5159 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.3123, allocations: 13.83 kB / 0.5159 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004557/0.3128, allocations: 308.9 kB / 0.5162 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001893/0.3147, allocations: 1.755 MB / 0.5179 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00028/0.315, allocations: 144.9 kB / 0.518 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.3151, allocations: 61.97 kB / 0.5181 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.3151, allocations: 1.719 kB / 0.5181 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.3151, allocations: 37.64 kB / 0.5181 GB, free: 14.87 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.3152, allocations: 0 / 0.5181 GB, free: 14.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001031/0.3162, allocations: 0.6029 MB / 0.5187 GB, free: 14.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.276e-05/0.3163, allocations: 109.7 kB / 0.5188 GB, free: 14.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004559/0.3167, allocations: 373.2 kB / 0.5192 GB, free: 14.06 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/0.3167, allocations: 26.95 kB / 0.5192 GB, free: 14.03 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.3169, allocations: 275.4 kB / 0.5195 GB, free: 13.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.72e-05/0.317, allocations: 56.42 kB / 0.5195 GB, free: 13.76 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.685e-05/0.3171, allocations: 60.97 kB / 0.5196 GB, free: 13.72 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.3172, allocations: 351.5 kB / 0.5199 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.728e-05/0.3173, allocations: 52.89 kB / 0.5199 GB, free: 13.37 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.3175, allocations: 198 kB / 0.5201 GB, free: 13.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002946/0.3178, allocations: 267.2 kB / 0.5204 GB, free: 12.91 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3178, allocations: 6.438 kB / 0.5204 GB, free: 12.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003959/0.3182, allocations: 293 kB / 0.5207 GB, free: 12.76 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.3182, allocations: 8.25 kB / 0.5207 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.3182, allocations: 8.531 kB / 0.5207 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.3183, allocations: 7.656 kB / 0.5207 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/0.3185, allocations: 69 kB / 0.5208 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.708e-05/0.3185, allocations: 11.98 kB / 0.5208 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.3187, allocations: 22.81 kB / 0.5208 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.3187, allocations: 12.59 kB / 0.5208 GB, free: 12.73 MB / 398.1 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.0001709/0.3189, allocations: 180.7 kB / 0.521 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.952e-05/0.319, allocations: 31.94 kB / 0.521 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002813/0.3193, allocations: 176.8 kB / 0.5212 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3193, allocations: 2.719 kB / 0.5212 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3193, allocations: 1.281 kB / 0.5212 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.333e-05/0.3194, allocations: 111.4 kB / 0.5213 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.383e-05/0.3194, allocations: 10.91 kB / 0.5213 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001613/0.3196, allocations: 9.094 kB / 0.5213 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.446e-05/0.3196, allocations: 9.969 kB / 0.5213 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004326/0.3201, allocations: 398.5 kB / 0.5217 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000441/0.3205, allocations: 0.5257 MB / 0.5222 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.452e-05/0.3206, allocations: 57.11 kB / 0.5223 GB, free: 11.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002649/0.3209, allocations: 259.4 kB / 0.5225 GB, free: 11.44 MB / 398.1 MB Notification: Performance of Backend: time 4.21e-07/0.3209, allocations: 0 / 0.5225 GB, free: 11.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006189/0.3215, allocations: 186.8 kB / 0.5227 GB, free: 11.34 MB / 398.1 MB Notification: Performance of SimCode: time 0.001619/0.3231, allocations: 1.362 MB / 0.524 GB, free: 10.34 MB / 398.1 MB Notification: Performance of Templates: time 0.00891/0.3321, allocations: 3.51 MB / 0.5275 GB, free: 10.04 MB / 398.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches