Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001135/0.001136, allocations: 176 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.705/1.705, allocations: 205.6 MB / 223.7 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009431/0.000943, allocations: 99.72 kB / 272.1 MB, free: 8.109 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002799/0.00028, allocations: 4 kB / 329 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2298, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006929/0.2368, allocations: 7.191 MB / 383.8 MB, free: 39.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004497/0.2413, allocations: 2.834 MB / 386.6 MB, free: 37.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001065/0.2424, allocations: 27.38 kB / 386.7 MB, free: 37.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001387/0.2438, allocations: 484.7 kB / 387.1 MB, free: 37.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008554/0.2447, allocations: 374.6 kB / 387.5 MB, free: 36.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000638/0.2453, allocations: 314.6 kB / 387.8 MB, free: 36.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001294/0.2466, allocations: 1.419 MB / 389.2 MB, free: 35.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005707/0.2472, allocations: 0.522 MB / 389.7 MB, free: 35.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004277/0.2476, allocations: 465.6 kB / 390.2 MB, free: 34.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003578/0.248, allocations: 0.5245 MB / 390.7 MB, free: 34.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.853e-05/0.2481, allocations: 60 kB / 390.8 MB, free: 34.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002247/0.2483, allocations: 95.98 kB / 390.9 MB, free: 34.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.2485, allocations: 199 kB / 391.1 MB, free: 33.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003408/0.2488, allocations: 0.596 MB / 391.7 MB, free: 33.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008962/0.2497, allocations: 1.595 MB / 393.3 MB, free: 31.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.2497, allocations: 4 kB / 393.3 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2498, allocations: 0 / 393.3 MB, free: 31.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.342e-05/0.2498, allocations: 0 / 393.3 MB, free: 31.68 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001649/0.2514, allocations: 1.305 MB / 394.6 MB, free: 30.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.2515, allocations: 12.03 kB / 394.6 MB, free: 30.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004914/0.252, allocations: 191.2 kB / 394.8 MB, free: 30.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008829/0.2529, allocations: 0.7822 MB / 395.6 MB, free: 29.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.75e-05/0.2529, allocations: 78.12 kB / 395.6 MB, free: 29.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.954e-05/0.253, allocations: 99.94 kB / 395.7 MB, free: 29.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.2542, allocations: 0.9536 MB / 396.7 MB, free: 28.13 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/0.2543, allocations: 11.84 kB / 396.7 MB, free: 28.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.201e-05/0.2543, allocations: 40 kB / 396.7 MB, free: 28.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.44e-05/0.2544, allocations: 24 kB / 396.8 MB, free: 28.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009396/0.2553, allocations: 0.6402 MB / 397.4 MB, free: 27.42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003641/0.259, allocations: 4.142 MB / 401.5 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008067/0.2598, allocations: 462.1 kB / 402 MB, free: 22.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002367/0.26, allocations: 169.4 kB / 402.2 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.2601, allocations: 11.75 kB / 402.2 MB, free: 22.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.62e-05/0.2601, allocations: 38.55 kB / 402.2 MB, free: 22.37 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.533e-06/0.2601, allocations: 4 kB / 402.2 MB, free: 22.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001817/0.2619, allocations: 1.353 MB / 403.6 MB, free: 20.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.262, allocations: 106.8 kB / 403.7 MB, free: 20.81 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008331/0.2628, allocations: 0.8901 MB / 404.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.2628, allocations: 29.7 kB / 404.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002571/0.2631, allocations: 0.5954 MB / 405.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.05e-05/0.2632, allocations: 145.9 kB / 405.3 MB, free: 19.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.221e-05/0.2632, allocations: 16 kB / 405.3 MB, free: 19.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.754e-05/0.2633, allocations: 337.9 kB / 405.7 MB, free: 18.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000262/0.2635, allocations: 169.9 kB / 405.8 MB, free: 18.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003566/0.2639, allocations: 497.6 kB / 406.3 MB, free: 17.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000677/0.2646, allocations: 0.6909 MB / 407 MB, free: 17.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.2646, allocations: 4 kB / 407 MB, free: 17.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009308/0.2655, allocations: 0.7623 MB / 407.8 MB, free: 16.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000188/0.2657, allocations: 392.6 kB / 408.2 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.2658, allocations: 12 kB / 408.2 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001442/0.2659, allocations: 36.84 kB / 408.2 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004835/0.2664, allocations: 171.7 kB / 408.4 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006636/0.2671, allocations: 1.284 MB / 409.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000451/0.2675, allocations: 47.98 kB / 409.7 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.524e-05/0.2676, allocations: 36 kB / 409.7 MB, free: 14.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.43e-06/0.2676, allocations: 6.812 kB / 409.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007322/0.2683, allocations: 0.6093 MB / 410.4 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.2684, allocations: 12 kB / 410.4 MB, free: 13.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001054/0.2685, allocations: 33.5 kB / 410.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004461/0.2689, allocations: 171.7 kB / 410.6 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005435/0.2695, allocations: 1.299 MB / 411.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003977/0.2699, allocations: 31.92 kB / 411.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.409e-05/0.2699, allocations: 40 kB / 411.9 MB, free: 11.77 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0003399/0.2703, allocations: 336.8 kB / 412.3 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.08e-05/0.2704, allocations: 94.78 kB / 412.4 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006473/0.271, allocations: 451.2 kB / 412.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.271, allocations: 4 kB / 412.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.2711, allocations: 0 / 412.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.2711, allocations: 0 / 412.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001625/0.2727, allocations: 1.394 MB / 414.2 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.2727, allocations: 0 / 414.2 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003283/0.273, allocations: 79.89 kB / 414.3 MB, free: 9.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.912e-05/0.2731, allocations: 33 kB / 414.3 MB, free: 9.293 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.2732, allocations: 12 kB / 414.3 MB, free: 9.281 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000588/0.2738, allocations: 1.28 MB / 415.6 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.2738, allocations: 0 / 415.6 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008383/0.2746, allocations: 0.7428 MB / 416.3 MB, free: 7.082 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001839/0.2748, allocations: 203.9 kB / 416.5 MB, free: 6.863 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.731e-05/0.2749, allocations: 11.98 kB / 416.6 MB, free: 6.852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003545/0.2753, allocations: 27.98 kB / 416.6 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.077e-05/0.2753, allocations: 23.97 kB / 416.6 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.2754, allocations: 12 kB / 416.6 MB, free: 6.789 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000623/0.276, allocations: 0.6055 MB / 417.2 MB, free: 6.172 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.276, allocations: 0 / 417.2 MB, free: 6.172 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001075/0.2771, allocations: 348 kB / 417.6 MB, free: 5.832 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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 (39): * Single equations (assignments): 38 * 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 0.0001787/0.2773, allocations: 135 kB / 417.7 MB, free: 5.691 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.2785, allocations: 0.9775 MB / 418.7 MB, free: 4.691 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.2785, allocations: 1.875 kB / 418.7 MB, free: 4.691 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003104/0.2788, allocations: 290.9 kB / 419 MB, free: 4.395 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.28, allocations: 223.5 kB / 419.2 MB, free: 4.176 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.2823, allocations: 2.346 MB / 421.5 MB, free: 1.777 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.2826, allocations: 1.028 MB / 422.6 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004644/0.2831, allocations: 123.4 kB / 422.7 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.2832, allocations: 59.42 kB / 422.7 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of SimCode: time 6.81e-07/0.2832, allocations: 0 / 422.7 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of Templates: time 0.01833/0.3016, allocations: 10.09 MB / 432.8 MB, free: 6.531 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches