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_ser.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_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 183.2 kB / 16.71 MB, free: 4.945 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.254/1.254, allocations: 225.7 MB / 243.2 MB, free: 8.457 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.0007699/0.00077, allocations: 91.23 kB / 294.4 MB, free: 9.504 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.2742/0.2742, allocations: 38.18 MB / 383.7 MB, free: 40.39 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000323/0.000323, allocations: 8 kB / 453.5 MB, free: 8.781 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2756, allocations: 59.15 MB / 0.5007 GB, free: 38.95 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006237/0.2818, allocations: 5.256 MB / 0.5058 GB, free: 38.09 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002891/0.2848, allocations: 2.521 MB / 0.5083 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002985/0.2851, allocations: 31.56 kB / 0.5083 GB, free: 36.09 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004348/0.2855, allocations: 120.4 kB / 0.5084 GB, free: 36.03 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006684/0.2862, allocations: 322.7 kB / 0.5087 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004519/0.2867, allocations: 195 kB / 0.5089 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009057/0.2876, allocations: 0.8409 MB / 0.5097 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004326/0.288, allocations: 346.6 kB / 0.5101 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003347/0.2884, allocations: 239.8 kB / 0.5103 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003423/0.2887, allocations: 282.6 kB / 0.5106 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.51e-05/0.2888, allocations: 22.25 kB / 0.5106 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001717/0.289, allocations: 64.06 kB / 0.5106 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.2891, allocations: 124.5 kB / 0.5108 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002166/0.2893, allocations: 260.4 kB / 0.511 GB, free: 34.82 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004797/0.2898, allocations: 0.6142 MB / 0.5116 GB, free: 34.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2898, allocations: 0 / 0.5116 GB, free: 34.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2898, allocations: 0 / 0.5116 GB, free: 34.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.2899, allocations: 3.562 kB / 0.5116 GB, free: 34.62 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001095/0.291, allocations: 0.7517 MB / 0.5123 GB, free: 34.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.291, allocations: 11.84 kB / 0.5124 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.327e-05/0.2911, allocations: 56.8 kB / 0.5124 GB, free: 34.03 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005678/0.2917, allocations: 470 kB / 0.5129 GB, free: 33.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.619e-05/0.2917, allocations: 27.5 kB / 0.5129 GB, free: 33.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.87e-05/0.2918, allocations: 46.09 kB / 0.5129 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005226/0.2923, allocations: 450 kB / 0.5134 GB, free: 33.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.2923, allocations: 10.81 kB / 0.5134 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.184e-05/0.2924, allocations: 10.88 kB / 0.5134 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.2924, allocations: 8.938 kB / 0.5134 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003579/0.2927, allocations: 275.9 kB / 0.5137 GB, free: 33.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001486/0.2942, allocations: 1.869 MB / 0.5155 GB, free: 31.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003915/0.2946, allocations: 248.5 kB / 0.5157 GB, free: 31.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.2948, allocations: 87.89 kB / 0.5158 GB, free: 31.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/0.2948, allocations: 6.594 kB / 0.5158 GB, free: 31.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000202/0.295, allocations: 172.4 kB / 0.516 GB, free: 31.53 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.373e-06/0.295, allocations: 2.656 kB / 0.516 GB, free: 31.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.001293/0.2963, allocations: 0.9037 MB / 0.5169 GB, free: 30.92 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.2963, allocations: 135.4 kB / 0.517 GB, free: 30.76 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003748/0.2967, allocations: 400.4 kB / 0.5174 GB, free: 30.56 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.2968, allocations: 32.17 kB / 0.5174 GB, free: 30.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.2969, allocations: 273.8 kB / 0.5177 GB, free: 30.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.39e-05/0.2969, allocations: 93.17 kB / 0.5177 GB, free: 30.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.428e-05/0.297, allocations: 5.125 kB / 0.5177 GB, free: 30.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.666e-05/0.297, allocations: 354.8 kB / 0.5181 GB, free: 29.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.2972, allocations: 75.97 kB / 0.5182 GB, free: 29.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.2974, allocations: 213.5 kB / 0.5184 GB, free: 29.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003281/0.2977, allocations: 311.7 kB / 0.5187 GB, free: 29.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.2977, allocations: 6.156 kB / 0.5187 GB, free: 29.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006914/0.2984, allocations: 425.2 kB / 0.5191 GB, free: 29.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.2984, allocations: 10.84 kB / 0.5191 GB, free: 29.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.2985, allocations: 4.156 kB / 0.5191 GB, free: 29.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003817/0.2988, allocations: 95.97 kB / 0.5192 GB, free: 29.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.2991, allocations: 69.52 kB / 0.5192 GB, free: 29.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001692/0.3008, allocations: 1.818 MB / 0.521 GB, free: 27.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002309/0.301, allocations: 21.7 kB / 0.521 GB, free: 27.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.668e-05/0.3011, allocations: 20.3 kB / 0.5211 GB, free: 27.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001679/0.3012, allocations: 200.3 kB / 0.5213 GB, free: 27.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.244e-05/0.3013, allocations: 40.77 kB / 0.5213 GB, free: 27.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005113/0.3018, allocations: 290.8 kB / 0.5216 GB, free: 27.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3018, allocations: 3.516 kB / 0.5216 GB, free: 27.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.3018, allocations: 6.719 kB / 0.5216 GB, free: 27.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3018, allocations: 5.062 kB / 0.5216 GB, free: 27.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008549/0.3027, allocations: 0.7683 MB / 0.5223 GB, free: 26.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3027, allocations: 2.875 kB / 0.5223 GB, free: 26.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.3029, allocations: 45.28 kB / 0.5224 GB, free: 26.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001754/0.3031, allocations: 48.67 kB / 0.5224 GB, free: 26.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.3031, allocations: 9.906 kB / 0.5224 GB, free: 26.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008369/0.304, allocations: 1.43 MB / 0.5238 GB, free: 25.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.304, allocations: 2.969 kB / 0.5238 GB, free: 25.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005663/0.3046, allocations: 0.489 MB / 0.5243 GB, free: 25.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.763e-05/0.3047, allocations: 143.3 kB / 0.5244 GB, free: 24.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.796e-05/0.3047, allocations: 10.72 kB / 0.5245 GB, free: 24.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.3049, allocations: 19.98 kB / 0.5245 GB, free: 24.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.829e-05/0.305, allocations: 18.78 kB / 0.5245 GB, free: 24.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/0.305, allocations: 13.78 kB / 0.5245 GB, free: 24.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002332/0.3053, allocations: 277.7 kB / 0.5248 GB, free: 24.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3053, allocations: 0 / 0.5248 GB, free: 24.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004253/0.3057, allocations: 102.1 kB / 0.5249 GB, free: 24.75 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007753/0.3065, allocations: 482.4 kB / 0.5253 GB, free: 24.47 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006746/0.3072, allocations: 387.9 kB / 0.5257 GB, free: 24.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3072, allocations: 3.219 kB / 0.5257 GB, free: 24.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003346/0.3075, allocations: 253.8 kB / 0.5259 GB, free: 24.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006183/0.3082, allocations: 118.5 kB / 0.5261 GB, free: 24.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.3096, allocations: 1.377 MB / 0.5274 GB, free: 23.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002245/0.3098, allocations: 0.852 MB / 0.5282 GB, free: 22.49 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002099/0.31, allocations: 65.23 kB / 0.5283 GB, free: 22.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.021e-05/0.3101, allocations: 37.61 kB / 0.5283 GB, free: 22.46 MB / 378.7 MB Notification: Performance of SimCode: time 2.01e-07/0.3101, allocations: 0 / 0.5283 GB, free: 22.46 MB / 378.7 MB Notification: Performance of Templates: time 0.008685/0.3188, allocations: 5.832 MB / 0.534 GB, free: 22.01 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches