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.001158/0.001158, allocations: 109 kB / 17.06 MB, free: 5.828 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.001243/0.001243, allocations: 198.9 kB / 18 MB, free: 4.949 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.428/1.428, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2615/0.2615, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 63.91 kB / 457.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3401, allocations: 58.05 MB / 0.5036 GB, free: 7.387 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.007298/0.3474, allocations: 4.806 MB / 0.5083 GB, free: 4.074 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00205/0.3495, allocations: 1.484 MB / 0.5097 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002428/0.3497, allocations: 19 kB / 0.5098 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003867/0.3501, allocations: 106.9 kB / 0.5099 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006665/0.3508, allocations: 269.7 kB / 0.5101 GB, free: 2.789 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003283/0.3512, allocations: 137.6 kB / 0.5103 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006994/0.3519, allocations: 0.587 MB / 0.5108 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000517/0.3524, allocations: 393.7 kB / 0.5112 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003116/0.3527, allocations: 243.1 kB / 0.5114 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003426/0.3531, allocations: 238.5 kB / 0.5117 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.675e-05/0.3532, allocations: 40.06 kB / 0.5117 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.862e-05/0.3532, allocations: 40.06 kB / 0.5117 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00015/0.3534, allocations: 120.3 kB / 0.5119 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002274/0.3536, allocations: 227 kB / 0.5121 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005971/0.3542, allocations: 0.5025 MB / 0.5126 GB, free: 1.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3543, allocations: 1.062 kB / 0.5126 GB, free: 1.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3543, allocations: 7.875 kB / 0.5126 GB, free: 1.637 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.3543, allocations: 0 / 0.5126 GB, free: 1.637 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.001209/0.3555, allocations: 0.7083 MB / 0.5133 GB, free: 1.078 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.3555, allocations: 14.88 kB / 0.5133 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.754e-05/0.3556, allocations: 70.52 kB / 0.5133 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.109e-05/0.3557, allocations: 46.78 kB / 0.5134 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000659/0.3564, allocations: 429.4 kB / 0.5138 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.719e-05/0.3565, allocations: 61.11 kB / 0.5139 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.188e-05/0.3566, allocations: 36.25 kB / 0.5139 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000673/0.3572, allocations: 429.3 kB / 0.5143 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.337e-05/0.3573, allocations: 0.6562 kB / 0.5143 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.585e-05/0.3573, allocations: 16.22 kB / 0.5143 GB, free: 372 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.3573, allocations: 9.094 kB / 0.5143 GB, free: 372 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005522/0.3579, allocations: 275.1 kB / 0.5146 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002506/0.3604, allocations: 1.837 MB / 0.5164 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004049/0.3608, allocations: 181.6 kB / 0.5166 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.361, allocations: 71.97 kB / 0.5166 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.569e-05/0.361, allocations: 3.406 kB / 0.5166 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.3611, allocations: 40.61 kB / 0.5167 GB, free: 14.58 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.673e-06/0.3611, allocations: 1.281 kB / 0.5167 GB, free: 14.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001527/0.3626, allocations: 0.6935 MB / 0.5173 GB, free: 14.08 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/0.3628, allocations: 109.6 kB / 0.5175 GB, free: 13.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005008/0.3633, allocations: 320.6 kB / 0.5178 GB, free: 13.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.787e-05/0.3633, allocations: 30.95 kB / 0.5178 GB, free: 13.74 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/0.3636, allocations: 241.2 kB / 0.518 GB, free: 13.54 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.056e-05/0.3637, allocations: 70.19 kB / 0.5181 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.3638, allocations: 67.17 kB / 0.5181 GB, free: 13.44 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.364, allocations: 340 kB / 0.5185 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001958/0.3642, allocations: 73.14 kB / 0.5185 GB, free: 13.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002974/0.3645, allocations: 198.6 kB / 0.5187 GB, free: 12.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005014/0.3651, allocations: 301.1 kB / 0.519 GB, free: 12.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.3651, allocations: 1.688 kB / 0.519 GB, free: 12.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006216/0.3657, allocations: 325.2 kB / 0.5193 GB, free: 12.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.3657, allocations: 7.172 kB / 0.5193 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3657, allocations: 3.656 kB / 0.5193 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.3658, allocations: 12.12 kB / 0.5194 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000306/0.3661, allocations: 76.22 kB / 0.5194 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/0.3661, allocations: 10.36 kB / 0.5194 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001985/0.3663, allocations: 16.47 kB / 0.5194 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.918e-05/0.3663, allocations: 17.5 kB / 0.5195 GB, free: 12.48 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.0001953/0.3665, allocations: 179.2 kB / 0.5196 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.773e-05/0.3666, allocations: 34.12 kB / 0.5197 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000434/0.3671, allocations: 198.5 kB / 0.5199 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.3671, allocations: 7.25 kB / 0.5199 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.862e-06/0.3671, allocations: 1.859 kB / 0.5199 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.3671, allocations: 0.5156 kB / 0.5199 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.3683, allocations: 0.6211 MB / 0.5205 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3683, allocations: 0 / 0.5205 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002533/0.3686, allocations: 42.09 kB / 0.5205 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.3686, allocations: 2.078 kB / 0.5205 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.3686, allocations: 7.984 kB / 0.5205 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.3687, allocations: 2.094 kB / 0.5205 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3687, allocations: 1.188 kB / 0.5205 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006999/0.3694, allocations: 463 kB / 0.521 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.557e-05/0.3695, allocations: 101.7 kB / 0.5211 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.469e-05/0.3695, allocations: 8.531 kB / 0.5211 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001821/0.3697, allocations: 7 kB / 0.5211 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.301e-05/0.3698, allocations: 16.16 kB / 0.5211 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.3698, allocations: 5.234 kB / 0.5211 GB, free: 11.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002521/0.3701, allocations: 221.1 kB / 0.5213 GB, free: 11.17 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3701, allocations: 1.094 kB / 0.5213 GB, free: 11.17 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004637/0.3705, allocations: 70.28 kB / 0.5214 GB, free: 11.16 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.001126/0.3717, allocations: 0.979 MB / 0.5223 GB, free: 10.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005312/0.3722, allocations: 198.8 kB / 0.5225 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3722, allocations: 1.562 kB / 0.5225 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001917/0.3724, allocations: 82.23 kB / 0.5226 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007124/0.3731, allocations: 99.83 kB / 0.5227 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005226/0.3784, allocations: 3.415 MB / 0.526 GB, free: 7.754 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007009/0.3791, allocations: 0.819 MB / 0.5268 GB, free: 7.039 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002589/0.3794, allocations: 44.84 kB / 0.5269 GB, free: 7.031 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002336/0.3796, allocations: 125.2 kB / 0.527 GB, free: 6.938 MB / 398.1 MB Notification: Performance of SimCode: time 1.473e-06/0.3796, allocations: 0 / 0.527 GB, free: 6.938 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03111/0.4107, allocations: 7.128 MB / 0.534 GB, free: 4.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.196/8.607, allocations: 9.203 kB / 0.534 GB, free: 4.812 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