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_par.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_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008758/0.0008758, allocations: 177.3 kB / 16.71 MB, free: 5.094 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.23/1.23, 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.0007841/0.0007841, allocations: 91.25 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.2728/0.2728, allocations: 38.18 MB / 383.7 MB, free: 40.34 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003/0.0003, allocations: 8 kB / 453.5 MB, free: 8.777 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2791, allocations: 59.16 MB / 0.5007 GB, free: 39.12 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.005319/0.2845, allocations: 5.735 MB / 0.5063 GB, free: 37.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003069/0.2876, allocations: 2.658 MB / 0.5089 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003584/0.2879, allocations: 29.53 kB / 0.5089 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005336/0.2885, allocations: 148.1 kB / 0.5091 GB, free: 35.75 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008247/0.2893, allocations: 375.7 kB / 0.5094 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000541/0.2899, allocations: 215.6 kB / 0.5096 GB, free: 35.42 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001104/0.291, allocations: 1.064 MB / 0.5107 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004606/0.2915, allocations: 406.4 kB / 0.511 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003538/0.2918, allocations: 302.1 kB / 0.5113 GB, free: 34.75 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003446/0.2922, allocations: 318 kB / 0.5116 GB, free: 34.63 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.228e-05/0.2922, allocations: 25.78 kB / 0.5117 GB, free: 34.63 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001663/0.2924, allocations: 71.55 kB / 0.5117 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.2925, allocations: 155 kB / 0.5119 GB, free: 34.55 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002292/0.2928, allocations: 296.4 kB / 0.5122 GB, free: 34.36 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000499/0.2933, allocations: 0.6905 MB / 0.5128 GB, free: 34.15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2933, allocations: 0 / 0.5128 GB, free: 34.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2933, allocations: 0 / 0.5128 GB, free: 34.15 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.2933, allocations: 0 / 0.5128 GB, free: 34.15 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001149/0.2945, allocations: 0.7991 MB / 0.5136 GB, free: 33.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.2945, allocations: 8.875 kB / 0.5136 GB, free: 33.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.089e-05/0.2946, allocations: 62.22 kB / 0.5137 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005989/0.2952, allocations: 0.5029 MB / 0.5142 GB, free: 33.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/0.2952, allocations: 30.59 kB / 0.5142 GB, free: 33.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.195e-05/0.2953, allocations: 49.61 kB / 0.5142 GB, free: 33.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008952/0.2962, allocations: 0.512 MB / 0.5147 GB, free: 32.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.202e-05/0.2963, allocations: 2.062 kB / 0.5147 GB, free: 32.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.772e-05/0.2964, allocations: 15.28 kB / 0.5148 GB, free: 32.83 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.369e-05/0.2965, allocations: 17.31 kB / 0.5148 GB, free: 32.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004283/0.2969, allocations: 349.4 kB / 0.5151 GB, free: 32.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.2988, allocations: 2.064 MB / 0.5171 GB, free: 31.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003812/0.2992, allocations: 233.7 kB / 0.5174 GB, free: 31 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.2994, allocations: 78.66 kB / 0.5174 GB, free: 30.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.2994, allocations: 7.125 kB / 0.5174 GB, free: 30.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002283/0.2996, allocations: 168.5 kB / 0.5176 GB, free: 30.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.2996, allocations: 0 / 0.5176 GB, free: 30.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.001334/0.301, allocations: 0.9181 MB / 0.5185 GB, free: 30.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.301, allocations: 132.8 kB / 0.5186 GB, free: 30.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004084/0.3014, allocations: 429.1 kB / 0.519 GB, free: 29.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/0.3015, allocations: 32.61 kB / 0.5191 GB, free: 29.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.3016, allocations: 292.7 kB / 0.5193 GB, free: 29.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.002e-05/0.3016, allocations: 88.2 kB / 0.5194 GB, free: 29.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.429e-05/0.3017, allocations: 11.09 kB / 0.5194 GB, free: 29.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.308e-05/0.3017, allocations: 357 kB / 0.5198 GB, free: 29.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001279/0.3019, allocations: 87.28 kB / 0.5199 GB, free: 29.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.3021, allocations: 223.9 kB / 0.5201 GB, free: 28.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002984/0.3024, allocations: 320.6 kB / 0.5204 GB, free: 28.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3024, allocations: 3 kB / 0.5204 GB, free: 28.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006751/0.3031, allocations: 438.7 kB / 0.5208 GB, free: 28.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.3031, allocations: 9.406 kB / 0.5208 GB, free: 28.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.3031, allocations: 9.719 kB / 0.5208 GB, free: 28.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003686/0.3035, allocations: 98.02 kB / 0.5209 GB, free: 28.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002226/0.3037, allocations: 71.02 kB / 0.521 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00145/0.3052, allocations: 1.698 MB / 0.5226 GB, free: 26.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.3054, allocations: 26.05 kB / 0.5227 GB, free: 26.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.3055, allocations: 15.78 kB / 0.5227 GB, free: 26.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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.0001929/0.3057, allocations: 208.4 kB / 0.5229 GB, free: 26.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.869e-05/0.3057, allocations: 44.19 kB / 0.5229 GB, free: 26.74 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004979/0.3062, allocations: 292.2 kB / 0.5232 GB, free: 26.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3062, allocations: 2.938 kB / 0.5232 GB, free: 26.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3062, allocations: 2.969 kB / 0.5232 GB, free: 26.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3062, allocations: 3.469 kB / 0.5232 GB, free: 26.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008985/0.3071, allocations: 0.7712 MB / 0.524 GB, free: 26.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3072, allocations: 3.984 kB / 0.524 GB, free: 26.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00024/0.3074, allocations: 47.92 kB / 0.524 GB, free: 26.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001754/0.3076, allocations: 52.41 kB / 0.5241 GB, free: 26.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.3076, allocations: 10.62 kB / 0.5241 GB, free: 26.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008687/0.3085, allocations: 1.433 MB / 0.5255 GB, free: 24.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.3085, allocations: 7.172 kB / 0.5255 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005913/0.3091, allocations: 478.6 kB / 0.5259 GB, free: 24.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.3092, allocations: 132 kB / 0.5261 GB, free: 24.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.807e-05/0.3093, allocations: 6.906 kB / 0.5261 GB, free: 24.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/0.3095, allocations: 16.19 kB / 0.5261 GB, free: 24.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.168e-05/0.3096, allocations: 26.44 kB / 0.5261 GB, free: 24.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-05/0.3096, allocations: 6.234 kB / 0.5261 GB, free: 24.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003503/0.31, allocations: 299.1 kB / 0.5264 GB, free: 24.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.31, allocations: 0 / 0.5264 GB, free: 24.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005032/0.3105, allocations: 121.3 kB / 0.5265 GB, free: 24.08 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.0009397/0.3114, allocations: 468.2 kB / 0.527 GB, free: 23.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000754/0.3122, allocations: 384.4 kB / 0.5273 GB, free: 23.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3122, allocations: 3.938 kB / 0.5273 GB, free: 23.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003242/0.3126, allocations: 236.7 kB / 0.5275 GB, free: 23.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007203/0.3133, allocations: 130.4 kB / 0.5277 GB, free: 23.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.315, allocations: 1.5 MB / 0.5291 GB, free: 22.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.3153, allocations: 0.8853 MB / 0.53 GB, free: 21.73 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002253/0.3155, allocations: 66.11 kB / 0.5301 GB, free: 21.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.633e-05/0.3156, allocations: 33.44 kB / 0.5301 GB, free: 21.7 MB / 378.7 MB Notification: Performance of SimCode: time 4.5e-07/0.3156, allocations: 0 / 0.5301 GB, free: 21.7 MB / 378.7 MB Notification: Performance of Templates: time 0.009708/0.3253, allocations: 6.089 MB / 0.536 GB, free: 21.22 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches