Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 114 kB / 17.06 MB, free: 5.973 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.00169/0.00169, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.389/1.389, allocations: 222.9 MB / 241.7 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.1755/0.1755, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 59.91 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3651, allocations: 58.05 MB / 0.5036 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.006061/0.3713, allocations: 4.805 MB / 0.5083 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002191/0.3735, allocations: 1.475 MB / 0.5097 GB, free: 3.176 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003374/0.3738, allocations: 18.22 kB / 0.5098 GB, free: 3.168 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004192/0.3743, allocations: 114.8 kB / 0.5099 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007306/0.3751, allocations: 269.8 kB / 0.5101 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003859/0.3755, allocations: 133.8 kB / 0.5103 GB, free: 2.867 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009998/0.3765, allocations: 0.5907 MB / 0.5108 GB, free: 2.582 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007122/0.3772, allocations: 389.6 kB / 0.5112 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004086/0.3776, allocations: 244 kB / 0.5114 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000378/0.378, allocations: 235.7 kB / 0.5117 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.825e-05/0.3781, allocations: 38.91 kB / 0.5117 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.648e-05/0.3782, allocations: 44.19 kB / 0.5117 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001448/0.3783, allocations: 125.4 kB / 0.5119 GB, free: 2.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002145/0.3786, allocations: 217.6 kB / 0.5121 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006286/0.3792, allocations: 0.5036 MB / 0.5126 GB, free: 1.809 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3792, allocations: 3.938 kB / 0.5126 GB, free: 1.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3792, allocations: 0 / 0.5126 GB, free: 1.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.617e-06/0.3792, allocations: 1 kB / 0.5126 GB, free: 1.805 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001243/0.3805, allocations: 0.7126 MB / 0.5133 GB, free: 1.242 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/0.3805, allocations: 13.02 kB / 0.5133 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001058/0.3807, allocations: 78.39 kB / 0.5133 GB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.3808, allocations: 44.12 kB / 0.5134 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007716/0.3816, allocations: 422.5 kB / 0.5138 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.232e-05/0.3817, allocations: 56.3 kB / 0.5138 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.249e-05/0.3817, allocations: 40.3 kB / 0.5139 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008157/0.3826, allocations: 431.4 kB / 0.5143 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.391e-05/0.3826, allocations: 1.125 kB / 0.5143 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.414e-05/0.3827, allocations: 21.12 kB / 0.5143 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.3827, allocations: 8.531 kB / 0.5143 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006302/0.3833, allocations: 276.1 kB / 0.5146 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002388/0.3857, allocations: 1.837 MB / 0.5164 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003774/0.3861, allocations: 174.1 kB / 0.5165 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.3863, allocations: 71.67 kB / 0.5166 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.3863, allocations: 6.094 kB / 0.5166 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.3863, allocations: 38.48 kB / 0.5167 GB, free: 14.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.664e-06/0.3864, allocations: 0 / 0.5167 GB, free: 14.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001427/0.3878, allocations: 0.7034 MB / 0.5173 GB, free: 14.24 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.387e-05/0.3879, allocations: 110.1 kB / 0.5174 GB, free: 14.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004775/0.3884, allocations: 316 kB / 0.5178 GB, free: 13.94 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.3884, allocations: 26.73 kB / 0.5178 GB, free: 13.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.3886, allocations: 249.9 kB / 0.518 GB, free: 13.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.427e-05/0.3887, allocations: 62.72 kB / 0.5181 GB, free: 13.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.3888, allocations: 66.52 kB / 0.5181 GB, free: 13.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.389, allocations: 344.4 kB / 0.5185 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/0.3892, allocations: 72.73 kB / 0.5185 GB, free: 13.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003146/0.3895, allocations: 200.9 kB / 0.5187 GB, free: 13.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000593/0.3901, allocations: 286 kB / 0.519 GB, free: 12.83 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.3901, allocations: 1.156 kB / 0.519 GB, free: 12.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007408/0.3908, allocations: 340.6 kB / 0.5193 GB, free: 12.67 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.3909, allocations: 6.812 kB / 0.5193 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.3909, allocations: 8.531 kB / 0.5193 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.747e-05/0.3909, allocations: 6.484 kB / 0.5193 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.3912, allocations: 82.5 kB / 0.5194 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.066e-05/0.3913, allocations: 10.09 kB / 0.5194 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.3915, allocations: 12.25 kB / 0.5194 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.3915, allocations: 12.72 kB / 0.5195 GB, free: 12.65 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 40 * 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.0002356/0.3917, allocations: 180 kB / 0.5196 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.326e-05/0.3918, allocations: 38 kB / 0.5197 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004569/0.3923, allocations: 198.4 kB / 0.5199 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3923, allocations: 7.203 kB / 0.5199 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.3923, allocations: 1.312 kB / 0.5199 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.3923, allocations: 6.422 kB / 0.5199 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.3934, allocations: 0.6115 MB / 0.5205 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.3934, allocations: 1.406 kB / 0.5205 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000258/0.3937, allocations: 41.22 kB / 0.5205 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.3937, allocations: 2.531 kB / 0.5205 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.3937, allocations: 15.83 kB / 0.5205 GB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.3937, allocations: 0.9062 kB / 0.5205 GB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3937, allocations: 2.094 kB / 0.5205 GB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006857/0.3944, allocations: 448.5 kB / 0.521 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.67e-05/0.3945, allocations: 110.7 kB / 0.5211 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.603e-05/0.3946, allocations: 2.875 kB / 0.5211 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.3948, allocations: 8.297 kB / 0.5211 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.181e-05/0.3949, allocations: 16.8 kB / 0.5211 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.3949, allocations: 8.5 kB / 0.5211 GB, free: 11.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000274/0.3952, allocations: 224 kB / 0.5213 GB, free: 11.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3952, allocations: 0 / 0.5213 GB, free: 11.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004377/0.3956, allocations: 66.91 kB / 0.5214 GB, free: 11.33 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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 (20): * Single equations (assignments): 19 * 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.0009474/0.3966, allocations: 0.9768 MB / 0.5223 GB, free: 10.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004828/0.3971, allocations: 202 kB / 0.5225 GB, free: 10.42 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3971, allocations: 0 / 0.5225 GB, free: 10.42 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001983/0.3973, allocations: 81.89 kB / 0.5226 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007842/0.3981, allocations: 109.2 kB / 0.5227 GB, free: 10.35 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00524/0.4033, allocations: 3.41 MB / 0.526 GB, free: 7.914 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004587/0.4038, allocations: 0.8159 MB / 0.5268 GB, free: 7.203 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002099/0.404, allocations: 48.73 kB / 0.5269 GB, free: 7.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.4042, allocations: 121.8 kB / 0.527 GB, free: 7.102 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4042, allocations: 0 / 0.527 GB, free: 7.102 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03204/0.4362, allocations: 7.131 MB / 0.534 GB, free: 4.906 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.726/8.162, allocations: 9.953 kB / 0.534 GB, free: 4.898 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches