Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",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.0007135/0.0007135, allocations: 89.8 kB / 16.65 MB, free: 6.535 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.0008953/0.0008953, allocations: 175.5 kB / 17.56 MB, free: 6.18 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.213/1.213, allocations: 223.2 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1663/0.1663, allocations: 38.1 MB / 330.8 MB, free: 8.523 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002626/0.0002627, allocations: 8 kB / 400.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08312/0.08339, allocations: 59.17 MB / 460 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005793/0.08922, allocations: 5.683 MB / 465.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002487/0.09173, allocations: 1.811 MB / 467.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003414/0.0921, allocations: 35.75 kB / 467.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002899/0.0924, allocations: 103.3 kB / 467.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005367/0.09295, allocations: 290.5 kB / 467.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002857/0.09324, allocations: 135.8 kB / 468 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007825/0.09403, allocations: 0.8761 MB / 468.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003945/0.09444, allocations: 357.8 kB / 469.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002597/0.0947, allocations: 234.9 kB / 469.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003297/0.09504, allocations: 274.8 kB / 469.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.407e-05/0.0951, allocations: 24 kB / 469.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.737e-05/0.09516, allocations: 24 kB / 469.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.09528, allocations: 119.6 kB / 469.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002074/0.09549, allocations: 268.5 kB / 470.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004227/0.09592, allocations: 0.5643 MB / 470.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.09593, allocations: 4 kB / 470.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.09594, allocations: 3.938 kB / 470.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.09595, allocations: 0 / 470.7 MB, free: 12.13 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001005/0.09696, allocations: 0.6958 MB / 471.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.097, allocations: 8.031 kB / 471.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.797e-05/0.09709, allocations: 86.7 kB / 471.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.457e-05/0.09717, allocations: 52.28 kB / 471.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005323/0.09771, allocations: 431.5 kB / 472 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-05/0.0978, allocations: 74.69 kB / 472.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.521e-05/0.09788, allocations: 40 kB / 472.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007223/0.0986, allocations: 0.5048 MB / 472.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.09863, allocations: 7.844 kB / 472.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.09867, allocations: 16 kB / 472.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.09869, allocations: 12 kB / 472.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005892/0.09928, allocations: 347.7 kB / 473 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001958/0.1013, allocations: 1.988 MB / 475 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003946/0.1017, allocations: 231.6 kB / 475.2 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001871/0.1019, allocations: 102.6 kB / 475.3 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.1019, allocations: 0 / 475.3 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.1019, allocations: 38.56 kB / 475.3 MB, free: 7.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 2.104e-06/0.1019, allocations: 7.922 kB / 475.4 MB, free: 7.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001454/0.1034, allocations: 0.8608 MB / 476.2 MB, free: 6.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.1034, allocations: 106.8 kB / 476.3 MB, free: 6.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002856/0.1037, allocations: 329.6 kB / 476.6 MB, free: 5.828 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.1038, allocations: 29.7 kB / 476.7 MB, free: 5.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.1039, allocations: 271.6 kB / 476.9 MB, free: 5.523 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.04e-05/0.104, allocations: 74.91 kB / 477 MB, free: 5.449 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.572e-05/0.104, allocations: 41.77 kB / 477.1 MB, free: 5.402 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1041, allocations: 342.8 kB / 477.4 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.1043, allocations: 91.91 kB / 477.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002503/0.1046, allocations: 221 kB / 477.7 MB, free: 4.691 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.1057, allocations: 0.5702 MB / 478.3 MB, free: 4.043 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1057, allocations: 4 kB / 478.3 MB, free: 4.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007787/0.1065, allocations: 432.5 kB / 478.7 MB, free: 3.609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.1065, allocations: 4 kB / 478.7 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.1065, allocations: 8 kB / 478.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002782/0.1068, allocations: 72.8 kB / 478.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002236/0.107, allocations: 72.03 kB / 478.8 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.1086, allocations: 1.751 MB / 480.6 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001838/0.1088, allocations: 20 kB / 480.6 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.418e-05/0.1089, allocations: 12 kB / 480.6 MB, free: 1.535 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001773/0.109, allocations: 197.1 kB / 480.8 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.344e-05/0.1091, allocations: 43.59 kB / 480.9 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.153e-05/0.1092, allocations: 39.31 kB / 480.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1092, allocations: 3.938 kB / 480.9 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1092, allocations: 4 kB / 480.9 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.1092, allocations: 4 kB / 480.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.1103, allocations: 0.7913 MB / 481.7 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1103, allocations: 0 / 481.7 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/0.1105, allocations: 47.91 kB / 481.7 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.699e-05/0.1106, allocations: 32.81 kB / 481.8 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.1106, allocations: 4 kB / 481.8 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007797/0.1114, allocations: 1.284 MB / 483.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.1114, allocations: 7.969 kB / 483.1 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006715/0.1121, allocations: 0.5056 MB / 483.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.549e-05/0.1122, allocations: 120.7 kB / 483.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.513e-05/0.1122, allocations: 7.938 kB / 483.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.1124, allocations: 15.98 kB / 483.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.61e-05/0.1125, allocations: 19.97 kB / 483.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.1125, allocations: 8 kB / 483.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001953/0.1127, allocations: 231.2 kB / 484 MB, free: 13.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1127, allocations: 0 / 484 MB, free: 13.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004238/0.1131, allocations: 84 kB / 484.1 MB, free: 13.85 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008972/0.114, allocations: 1.06 MB / 485.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006325/0.1147, allocations: 378.6 kB / 485.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1147, allocations: 0 / 485.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003258/0.115, allocations: 219.5 kB / 485.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006383/0.1157, allocations: 108.4 kB / 485.8 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004551/0.1202, allocations: 3.965 MB / 489.8 MB, free: 7.855 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.1207, allocations: 0.8467 MB / 490.6 MB, free: 6.984 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001725/0.1208, allocations: 51.25 kB / 490.7 MB, free: 6.934 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/0.121, allocations: 143.3 kB / 490.8 MB, free: 6.793 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.121, allocations: 0 / 490.8 MB, free: 6.793 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4823/0.6033, allocations: 7.856 MB / 498.7 MB, free: 15.16 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002353/0.6036, allocations: 239.1 kB / 498.9 MB, free: 14.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.052/2.655, allocations: 3.938 kB / 498.9 MB, free: 14.91 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches