Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001271/0.001271, allocations: 193.1 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 229.5 MB / 247.7 MB, free: 6.297 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007524/0.0007524, allocations: 96.05 kB / 299.9 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3149/0.3149, allocations: 45 MB / 397 MB, free: 31.45 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002797/0.0002798, allocations: 8 kB / 470.8 MB, free: 7.102 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2967, allocations: 63.11 MB / 0.5214 GB, free: 38.5 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.003572/0.3004, allocations: 3.481 MB / 0.5248 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00173/0.3021, allocations: 1.55 MB / 0.5263 GB, free: 34.81 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002487/0.3024, allocations: 12.91 kB / 0.5263 GB, free: 34.81 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005371/0.3029, allocations: 223.9 kB / 0.5265 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.3032, allocations: 114.1 kB / 0.5266 GB, free: 34.62 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003284/0.3035, allocations: 164.4 kB / 0.5268 GB, free: 34.51 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004557/0.304, allocations: 0.6037 MB / 0.5274 GB, free: 34.2 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003214/0.3043, allocations: 237.5 kB / 0.5276 GB, free: 34.08 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002352/0.3045, allocations: 191 kB / 0.5278 GB, free: 33.99 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000202/0.3047, allocations: 216.4 kB / 0.528 GB, free: 33.88 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.695e-05/0.3048, allocations: 29 kB / 0.528 GB, free: 33.87 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.537e-05/0.3049, allocations: 26.38 kB / 0.528 GB, free: 33.87 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.407e-05/0.3049, allocations: 90.73 kB / 0.5281 GB, free: 33.81 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001772/0.3051, allocations: 270.5 kB / 0.5284 GB, free: 33.63 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004464/0.3056, allocations: 0.647 MB / 0.529 GB, free: 33.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3056, allocations: 0 / 0.529 GB, free: 33.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3056, allocations: 0 / 0.529 GB, free: 33.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.3056, allocations: 0 / 0.529 GB, free: 33.43 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.000986/0.3066, allocations: 0.755 MB / 0.5297 GB, free: 32.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.3066, allocations: 8.781 kB / 0.5298 GB, free: 32.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.677e-05/0.3067, allocations: 64.91 kB / 0.5298 GB, free: 32.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003897/0.3071, allocations: 399.9 kB / 0.5302 GB, free: 32.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.3072, allocations: 32.97 kB / 0.5302 GB, free: 32.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.222e-05/0.3072, allocations: 52.31 kB / 0.5303 GB, free: 32.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006301/0.3079, allocations: 459.7 kB / 0.5307 GB, free: 32.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.3079, allocations: 6.531 kB / 0.5307 GB, free: 32.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.191e-05/0.3079, allocations: 15.16 kB / 0.5307 GB, free: 32.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.3079, allocations: 11.75 kB / 0.5308 GB, free: 32.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005043/0.3084, allocations: 317.3 kB / 0.5311 GB, free: 32.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.3103, allocations: 1.693 MB / 0.5327 GB, free: 31.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007188/0.311, allocations: 422.4 kB / 0.5331 GB, free: 30.81 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001886/0.3112, allocations: 125.2 kB / 0.5332 GB, free: 30.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.3112, allocations: 2.719 kB / 0.5332 GB, free: 30.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/0.3113, allocations: 33.22 kB / 0.5333 GB, free: 30.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.804e-06/0.3113, allocations: 0 / 0.5333 GB, free: 30.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.001353/0.3126, allocations: 0.9286 MB / 0.5342 GB, free: 30.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.105e-05/0.3127, allocations: 54.03 kB / 0.5342 GB, free: 30.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000365/0.313, allocations: 389.4 kB / 0.5346 GB, free: 29.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.3131, allocations: 32.67 kB / 0.5346 GB, free: 29.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.3132, allocations: 280.4 kB / 0.5349 GB, free: 29.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.777e-05/0.3132, allocations: 86.38 kB / 0.535 GB, free: 29.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.248e-05/0.3133, allocations: 10.94 kB / 0.535 GB, free: 29.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.632e-05/0.3133, allocations: 353 kB / 0.5353 GB, free: 29.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/0.3135, allocations: 93.84 kB / 0.5354 GB, free: 29.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.3137, allocations: 167 kB / 0.5356 GB, free: 29.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003789/0.3141, allocations: 267.7 kB / 0.5358 GB, free: 28.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3141, allocations: 2.594 kB / 0.5358 GB, free: 28.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005038/0.3146, allocations: 357.5 kB / 0.5362 GB, free: 28.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.508e-05/0.3147, allocations: 146.7 kB / 0.5363 GB, free: 28.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3147, allocations: 0 / 0.5363 GB, free: 28.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001193/0.3148, allocations: 21.27 kB / 0.5363 GB, free: 28.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002675/0.3151, allocations: 75.64 kB / 0.5364 GB, free: 28.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000719/0.3158, allocations: 1.286 MB / 0.5377 GB, free: 27.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.316, allocations: 18.64 kB / 0.5377 GB, free: 27.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.316, allocations: 18.59 kB / 0.5377 GB, free: 27.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.619e-06/0.316, allocations: 2.719 kB / 0.5377 GB, free: 27.19 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003801/0.3164, allocations: 258.7 kB / 0.5379 GB, free: 27.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-06/0.3164, allocations: 6.844 kB / 0.538 GB, free: 27.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.465e-05/0.3165, allocations: 24.84 kB / 0.538 GB, free: 27.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002304/0.3167, allocations: 64.09 kB / 0.538 GB, free: 27.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005815/0.3173, allocations: 1.282 MB / 0.5393 GB, free: 25.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001461/0.3175, allocations: 10.84 kB / 0.5393 GB, free: 25.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.3175, allocations: 15.81 kB / 0.5393 GB, free: 25.74 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001573/0.3177, allocations: 245.2 kB / 0.5395 GB, free: 25.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.151e-05/0.3177, allocations: 43.39 kB / 0.5396 GB, free: 25.49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.513e-05/0.3178, allocations: 40.92 kB / 0.5396 GB, free: 25.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3178, allocations: 7.5 kB / 0.5396 GB, free: 25.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.3178, allocations: 0.75 kB / 0.5396 GB, free: 25.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.3179, allocations: 5.109 kB / 0.5396 GB, free: 25.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.3189, allocations: 0.8525 MB / 0.5405 GB, free: 24.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3189, allocations: 0.5156 kB / 0.5405 GB, free: 24.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002452/0.3192, allocations: 62.62 kB / 0.5405 GB, free: 24.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.555e-05/0.3192, allocations: 22.27 kB / 0.5406 GB, free: 24.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.3193, allocations: 11.42 kB / 0.5406 GB, free: 24.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005476/0.3198, allocations: 1.286 MB / 0.5418 GB, free: 23.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3198, allocations: 0 / 0.5418 GB, free: 23.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006013/0.3204, allocations: 0.4956 MB / 0.5423 GB, free: 23.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.483e-05/0.3205, allocations: 117.6 kB / 0.5424 GB, free: 23.15 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.944e-05/0.3206, allocations: 11.39 kB / 0.5424 GB, free: 23.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.3208, allocations: 22.94 kB / 0.5424 GB, free: 23.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.287e-05/0.3208, allocations: 15.25 kB / 0.5425 GB, free: 23.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.3208, allocations: 10.8 kB / 0.5425 GB, free: 23.13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000245/0.3211, allocations: 274.8 kB / 0.5427 GB, free: 22.99 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3211, allocations: 0 / 0.5427 GB, free: 22.99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004425/0.3215, allocations: 145.3 kB / 0.5429 GB, free: 22.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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): 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 8.587e-05/0.3216, allocations: 118 kB / 0.543 GB, free: 22.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007927/0.3224, allocations: 0.5965 MB / 0.5436 GB, free: 22.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3224, allocations: 0 / 0.5436 GB, free: 22.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002679/0.3227, allocations: 236.8 kB / 0.5438 GB, free: 22.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004946/0.3232, allocations: 67.67 kB / 0.5439 GB, free: 22.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.3247, allocations: 1.324 MB / 0.5452 GB, free: 21.49 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002562/0.325, allocations: 0.8346 MB / 0.546 GB, free: 20.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001659/0.3252, allocations: 43.5 kB / 0.546 GB, free: 20.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.343e-05/0.3252, allocations: 32.31 kB / 0.546 GB, free: 20.77 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.3252, allocations: 0 / 0.546 GB, free: 20.77 MB / 378.7 MB Notification: Performance of Templates: time 0.008072/0.3333, allocations: 3.839 MB / 0.5498 GB, free: 20.31 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)