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.001719/0.001719, allocations: 111.3 kB / 17.06 MB, free: 6 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.002103/0.002103, allocations: 192.1 kB / 18 MB, free: 5.074 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.458/1.458, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1805/0.1805, allocations: 38.05 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 64.09 kB / 457.7 MB, free: 7.383 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3113, allocations: 58.06 MB / 0.5036 GB, free: 7.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.005439/0.3168, allocations: 4.797 MB / 0.5083 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002044/0.3189, allocations: 1.475 MB / 0.5098 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002624/0.3191, allocations: 17.53 kB / 0.5098 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003689/0.3195, allocations: 112 kB / 0.5099 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006833/0.3203, allocations: 268.6 kB / 0.5101 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000335/0.3206, allocations: 138.8 kB / 0.5103 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006745/0.3213, allocations: 0.5833 MB / 0.5108 GB, free: 2.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004582/0.3218, allocations: 394.1 kB / 0.5112 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002971/0.3221, allocations: 238.8 kB / 0.5114 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003327/0.3224, allocations: 234.6 kB / 0.5117 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.462e-05/0.3225, allocations: 43.53 kB / 0.5117 GB, free: 2.074 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.486e-05/0.3226, allocations: 40.22 kB / 0.5117 GB, free: 2.074 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000122/0.3227, allocations: 128.3 kB / 0.5119 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001943/0.3229, allocations: 219.2 kB / 0.5121 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006736/0.3236, allocations: 0.5026 MB / 0.5126 GB, free: 1.672 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3236, allocations: 0 / 0.5126 GB, free: 1.672 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.527e-06/0.3236, allocations: 5.25 kB / 0.5126 GB, free: 1.668 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.3236, allocations: 0 / 0.5126 GB, free: 1.668 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.001267/0.3249, allocations: 0.7235 MB / 0.5133 GB, free: 1.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.3249, allocations: 13.11 kB / 0.5133 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.501e-05/0.325, allocations: 70.64 kB / 0.5134 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.865e-05/0.3251, allocations: 52.03 kB / 0.5134 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006/0.3257, allocations: 421.4 kB / 0.5138 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.647e-05/0.3258, allocations: 57.08 kB / 0.5139 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.602e-05/0.3259, allocations: 41.02 kB / 0.5139 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007053/0.3266, allocations: 435.2 kB / 0.5143 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/0.3267, allocations: 1.375 kB / 0.5143 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.384e-05/0.3267, allocations: 12.16 kB / 0.5143 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.3267, allocations: 13 kB / 0.5143 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005183/0.3272, allocations: 280 kB / 0.5146 GB, free: 280 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002364/0.3296, allocations: 1.834 MB / 0.5164 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003678/0.33, allocations: 185.6 kB / 0.5166 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.3302, allocations: 72.44 kB / 0.5166 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.3302, allocations: 6.469 kB / 0.5167 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/0.3302, allocations: 37.55 kB / 0.5167 GB, free: 14.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.714e-06/0.3303, allocations: 0 / 0.5167 GB, free: 14.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001504/0.3318, allocations: 0.7183 MB / 0.5174 GB, free: 14.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.293e-05/0.3319, allocations: 110.4 kB / 0.5175 GB, free: 13.94 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004843/0.3323, allocations: 311.8 kB / 0.5178 GB, free: 13.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.3324, allocations: 26.89 kB / 0.5178 GB, free: 13.74 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002133/0.3326, allocations: 246.5 kB / 0.5181 GB, free: 13.54 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.869e-05/0.3327, allocations: 79.06 kB / 0.5181 GB, free: 13.47 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.3328, allocations: 65.66 kB / 0.5182 GB, free: 13.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.333, allocations: 341.7 kB / 0.5185 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.3332, allocations: 75.67 kB / 0.5186 GB, free: 13.08 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002804/0.3334, allocations: 199.7 kB / 0.5188 GB, free: 12.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005071/0.334, allocations: 289.8 kB / 0.5191 GB, free: 12.65 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.334, allocations: 1.281 kB / 0.5191 GB, free: 12.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006565/0.3346, allocations: 336.1 kB / 0.5194 GB, free: 12.49 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.3347, allocations: 7.828 kB / 0.5194 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.3347, allocations: 3.531 kB / 0.5194 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.3347, allocations: 11.38 kB / 0.5194 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002889/0.335, allocations: 72.7 kB / 0.5195 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.335, allocations: 12.05 kB / 0.5195 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001944/0.3352, allocations: 23.64 kB / 0.5195 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.3353, allocations: 13.06 kB / 0.5195 GB, free: 12.46 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.0002101/0.3355, allocations: 174.9 kB / 0.5197 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-05/0.3356, allocations: 35.27 kB / 0.5197 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004255/0.336, allocations: 197.9 kB / 0.5199 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.336, allocations: 3.062 kB / 0.5199 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.336, allocations: 1.125 kB / 0.5199 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.336, allocations: 6.391 kB / 0.5199 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.337, allocations: 0.6082 MB / 0.5205 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3371, allocations: 1.25 kB / 0.5205 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002348/0.3373, allocations: 41.67 kB / 0.5205 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.3373, allocations: 2 kB / 0.5205 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.459e-05/0.3373, allocations: 11.14 kB / 0.5206 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.3374, allocations: 10.25 kB / 0.5206 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3374, allocations: 1.375 kB / 0.5206 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000636/0.338, allocations: 449.4 kB / 0.521 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.602e-05/0.3381, allocations: 106.5 kB / 0.5211 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.757e-05/0.3382, allocations: 10.98 kB / 0.5211 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001912/0.3384, allocations: 16.52 kB / 0.5211 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.111e-05/0.3384, allocations: 19.61 kB / 0.5211 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.3385, allocations: 8.281 kB / 0.5212 GB, free: 11.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002453/0.3387, allocations: 222.6 kB / 0.5214 GB, free: 11.15 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3387, allocations: 0 / 0.5214 GB, free: 11.15 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004459/0.3392, allocations: 66.03 kB / 0.5214 GB, free: 11.14 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.0009189/0.3401, allocations: 0.993 MB / 0.5224 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004547/0.3406, allocations: 203.3 kB / 0.5226 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3406, allocations: 0.9062 kB / 0.5226 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.3408, allocations: 73.94 kB / 0.5227 GB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006723/0.3414, allocations: 98.67 kB / 0.5228 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004561/0.346, allocations: 3.426 MB / 0.5261 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004419/0.3465, allocations: 0.813 MB / 0.5269 GB, free: 7.004 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002092/0.3467, allocations: 53.75 kB / 0.5269 GB, free: 6.988 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/0.3469, allocations: 121.2 kB / 0.5271 GB, free: 6.898 MB / 398.1 MB Notification: Performance of SimCode: time 2.705e-06/0.3469, allocations: 0 / 0.5271 GB, free: 6.898 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0315/0.3784, allocations: 7.033 MB / 0.5339 GB, free: 4.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.428/8.806, allocations: 11.41 kB / 0.5339 GB, free: 4.836 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