Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000826/0.0008261, allocations: 181.6 kB / 16.71 MB, free: 4.844 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.233/1.233, allocations: 225.7 MB / 243.2 MB, free: 8.434 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007102/0.0007103, allocations: 93.75 kB / 294.4 MB, free: 9.469 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2768/0.2768, allocations: 38.19 MB / 383.7 MB, free: 40.39 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002813/0.0002813, allocations: 8 kB / 453.6 MB, free: 8.754 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.282, allocations: 59.15 MB / 0.5007 GB, free: 38.86 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005561/0.2876, allocations: 5.52 MB / 0.5061 GB, free: 37.83 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002708/0.2903, allocations: 2.144 MB / 0.5082 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003574/0.2907, allocations: 37.31 kB / 0.5082 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003275/0.291, allocations: 100 kB / 0.5083 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006686/0.2917, allocations: 285.7 kB / 0.5086 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003819/0.2921, allocations: 131.8 kB / 0.5087 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009872/0.2931, allocations: 0.8872 MB / 0.5096 GB, free: 35.47 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004472/0.2936, allocations: 349.1 kB / 0.5099 GB, free: 35.36 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003137/0.2939, allocations: 243 kB / 0.5101 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003594/0.2943, allocations: 270 kB / 0.5104 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.197e-05/0.2943, allocations: 22.81 kB / 0.5104 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.412e-05/0.2944, allocations: 29.91 kB / 0.5104 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001446/0.2946, allocations: 124.4 kB / 0.5106 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000229/0.2948, allocations: 265.7 kB / 0.5108 GB, free: 34.92 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004241/0.2952, allocations: 0.5569 MB / 0.5114 GB, free: 34.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2952, allocations: 0.625 kB / 0.5114 GB, free: 34.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2952, allocations: 0.625 kB / 0.5114 GB, free: 34.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.2953, allocations: 0 / 0.5114 GB, free: 34.75 MB / 378.7 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.001077/0.2963, allocations: 0.6997 MB / 0.512 GB, free: 34.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.2964, allocations: 13.66 kB / 0.512 GB, free: 34.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.765e-05/0.2965, allocations: 55.41 kB / 0.5121 GB, free: 34.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005201/0.297, allocations: 435.6 kB / 0.5125 GB, free: 33.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.868e-05/0.2971, allocations: 60.92 kB / 0.5126 GB, free: 33.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.994e-05/0.2972, allocations: 41.97 kB / 0.5126 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006532/0.2978, allocations: 0.5084 MB / 0.5131 GB, free: 33.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.2979, allocations: 0 / 0.5131 GB, free: 33.54 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.2979, allocations: 17.88 kB / 0.5131 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.2979, allocations: 9.469 kB / 0.5131 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005299/0.2985, allocations: 357.9 kB / 0.5135 GB, free: 33.4 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.3002, allocations: 1.98 MB / 0.5154 GB, free: 31.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003538/0.3006, allocations: 228.4 kB / 0.5156 GB, free: 31.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.3008, allocations: 106.9 kB / 0.5157 GB, free: 31.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.3008, allocations: 10.58 kB / 0.5157 GB, free: 31.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.3008, allocations: 41.31 kB / 0.5158 GB, free: 31.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=20): time 1.332e-06/0.3008, allocations: 0 / 0.5158 GB, free: 31.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.001403/0.3023, allocations: 0.8561 MB / 0.5166 GB, free: 31.06 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.3023, allocations: 109.2 kB / 0.5167 GB, free: 30.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003801/0.3027, allocations: 330.9 kB / 0.517 GB, free: 30.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.3027, allocations: 30.7 kB / 0.5171 GB, free: 30.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.3029, allocations: 266.1 kB / 0.5173 GB, free: 30.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.76e-05/0.303, allocations: 83.72 kB / 0.5174 GB, free: 30.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.314e-05/0.303, allocations: 5.156 kB / 0.5174 GB, free: 30.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.3031, allocations: 349.1 kB / 0.5177 GB, free: 30.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002418/0.3034, allocations: 86.86 kB / 0.5178 GB, free: 30.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/0.3037, allocations: 215.1 kB / 0.518 GB, free: 29.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.3048, allocations: 0.5717 MB / 0.5186 GB, free: 29.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3048, allocations: 1.281 kB / 0.5186 GB, free: 29.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008428/0.3056, allocations: 419.9 kB / 0.519 GB, free: 29.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.3057, allocations: 10.2 kB / 0.519 GB, free: 29.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.3057, allocations: 4.375 kB / 0.519 GB, free: 29.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003316/0.306, allocations: 75.42 kB / 0.5191 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002408/0.3063, allocations: 72.12 kB / 0.5191 GB, free: 29.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001591/0.3079, allocations: 1.743 MB / 0.5208 GB, free: 27.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.3081, allocations: 25.8 kB / 0.5209 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.3081, allocations: 12.27 kB / 0.5209 GB, free: 27.68 MB / 378.7 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.0001885/0.3083, allocations: 200.6 kB / 0.5211 GB, free: 27.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.862e-05/0.3084, allocations: 34.89 kB / 0.5211 GB, free: 27.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.448e-05/0.3084, allocations: 40.31 kB / 0.5211 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.3084, allocations: 2.875 kB / 0.5211 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.3085, allocations: 3.938 kB / 0.5211 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.3085, allocations: 4.531 kB / 0.5212 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.3095, allocations: 0.7899 MB / 0.5219 GB, free: 26.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3095, allocations: 0 / 0.5219 GB, free: 26.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002308/0.3097, allocations: 48.38 kB / 0.522 GB, free: 26.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.868e-05/0.3098, allocations: 24.3 kB / 0.522 GB, free: 26.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.3098, allocations: 11.58 kB / 0.522 GB, free: 26.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005593/0.3104, allocations: 1.284 MB / 0.5233 GB, free: 25.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.3104, allocations: 0 / 0.5233 GB, free: 25.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005637/0.311, allocations: 0.5115 MB / 0.5238 GB, free: 25.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-05/0.3111, allocations: 115.8 kB / 0.5239 GB, free: 25.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.922e-05/0.3111, allocations: 10.88 kB / 0.5239 GB, free: 25.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001833/0.3113, allocations: 17.06 kB / 0.5239 GB, free: 25.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.035e-05/0.3114, allocations: 19.27 kB / 0.5239 GB, free: 25.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.3114, allocations: 9.469 kB / 0.5239 GB, free: 25.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001663/0.3116, allocations: 225.9 kB / 0.5241 GB, free: 24.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3116, allocations: 0 / 0.5241 GB, free: 24.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004201/0.312, allocations: 85.78 kB / 0.5242 GB, free: 24.96 MB / 378.7 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 9.586e-05/0.3121, allocations: 114.8 kB / 0.5243 GB, free: 24.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006114/0.3127, allocations: 385.3 kB / 0.5247 GB, free: 24.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3128, allocations: 0 / 0.5247 GB, free: 24.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002733/0.313, allocations: 223.5 kB / 0.5249 GB, free: 24.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006097/0.3137, allocations: 102.3 kB / 0.525 GB, free: 24.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.315, allocations: 1.186 MB / 0.5262 GB, free: 23.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.3152, allocations: 0.8387 MB / 0.527 GB, free: 22.99 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000197/0.3154, allocations: 56.05 kB / 0.527 GB, free: 22.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.498e-05/0.3155, allocations: 27.31 kB / 0.5271 GB, free: 22.96 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3155, allocations: 3.938 kB / 0.5271 GB, free: 22.96 MB / 378.7 MB Notification: Performance of Templates: time 0.007329/0.3228, allocations: 4.224 MB / 0.5312 GB, free: 22.64 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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