Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 113.9 kB / 17.07 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 198.8 kB / 18 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 51.92 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2459, allocations: 49.43 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009115/0.255, allocations: 8.175 MB / 408.9 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00505/0.2601, allocations: 2.684 MB / 411.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006695/0.2608, allocations: 27.94 kB / 411.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001543/0.2624, allocations: 0.5708 MB / 412.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001013/0.2634, allocations: 460.5 kB / 412.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007074/0.2641, allocations: 367.5 kB / 413 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001376/0.2655, allocations: 1.505 MB / 414.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007524/0.2663, allocations: 0.6049 MB / 415.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006032/0.2669, allocations: 0.5641 MB / 415.7 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005811/0.2675, allocations: 0.6026 MB / 416.3 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001498/0.2676, allocations: 140 kB / 416.4 MB, free: 9.113 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002949/0.2679, allocations: 180 kB / 416.6 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002072/0.2682, allocations: 282.9 kB / 416.9 MB, free: 8.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005298/0.2687, allocations: 0.6685 MB / 417.5 MB, free: 7.988 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001577/0.2703, allocations: 1.724 MB / 419.3 MB, free: 6.258 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2703, allocations: 8 kB / 419.3 MB, free: 6.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2703, allocations: 0 / 419.3 MB, free: 6.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.2703, allocations: 0 / 419.3 MB, free: 6.25 MB / 334.1 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.002326/0.2727, allocations: 1.503 MB / 420.8 MB, free: 4.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.2727, allocations: 8.031 kB / 420.8 MB, free: 4.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000622/0.2733, allocations: 187.3 kB / 421 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.2745, allocations: 0.8017 MB / 421.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.269e-05/0.2746, allocations: 73.94 kB / 421.8 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.2747, allocations: 99.94 kB / 421.9 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.2762, allocations: 0.9536 MB / 422.9 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.305e-05/0.2763, allocations: 7.906 kB / 422.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.937e-05/0.2764, allocations: 40 kB / 422.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.045e-05/0.2764, allocations: 27.98 kB / 423 MB, free: 2.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/0.2775, allocations: 0.6363 MB / 423.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0048/0.2824, allocations: 4.076 MB / 427.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.2834, allocations: 431.7 kB / 428.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003446/0.2838, allocations: 161.4 kB / 428.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.556e-05/0.2838, allocations: 7.984 kB / 428.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.457e-05/0.2839, allocations: 34.56 kB / 428.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.655e-06/0.2839, allocations: 8 kB / 428.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003469/0.2874, allocations: 1.315 MB / 429.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.2875, allocations: 110.8 kB / 429.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001784/0.2893, allocations: 0.8976 MB / 430.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.288e-05/0.2893, allocations: 29.7 kB / 430.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005736/0.2899, allocations: 0.5914 MB / 431.2 MB, free: 9.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/0.2901, allocations: 153.9 kB / 431.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002982/0.2904, allocations: 134.5 kB / 431.5 MB, free: 9.465 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.2906, allocations: 334 kB / 431.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005125/0.2911, allocations: 176.8 kB / 432 MB, free: 8.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008051/0.2919, allocations: 489.7 kB / 432.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.2933, allocations: 0.6831 MB / 433.2 MB, free: 7.496 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.729e-06/0.2933, allocations: 4 kB / 433.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001967/0.2953, allocations: 0.7508 MB / 433.9 MB, free: 6.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.783e-05/0.2953, allocations: 8.125 kB / 433.9 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/0.2953, allocations: 16 kB / 434 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002196/0.2956, allocations: 36.8 kB / 434 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008964/0.2965, allocations: 167.7 kB / 434.2 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.2979, allocations: 1.402 MB / 435.6 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009497/0.2988, allocations: 35.89 kB / 435.6 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-05/0.2989, allocations: 40.03 kB / 435.6 MB, free: 4.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008827/0.2998, allocations: 350.1 kB / 436 MB, free: 4.543 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000719/0.3006, allocations: 477.7 kB / 436.4 MB, free: 3.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001114/0.3017, allocations: 0.6639 MB / 437.1 MB, free: 3.121 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.57e-06/0.3017, allocations: 0 / 437.1 MB, free: 3.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001735/0.3034, allocations: 0.7194 MB / 437.8 MB, free: 2.391 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.3035, allocations: 14.64 kB / 437.8 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/0.3035, allocations: 12 kB / 437.9 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001437/0.3037, allocations: 29.39 kB / 437.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008593/0.3045, allocations: 179.6 kB / 438.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/0.3059, allocations: 1.382 MB / 439.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009075/0.3068, allocations: 39.83 kB / 439.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.604e-05/0.3069, allocations: 40 kB / 439.5 MB, free: 0.5586 MB / 350.1 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.0002816/0.3072, allocations: 228 kB / 439.7 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/0.3074, allocations: 90.88 kB / 439.8 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.3086, allocations: 435.2 kB / 440.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.3086, allocations: 4 kB / 440.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3086, allocations: 0 / 440.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.3086, allocations: 11.97 kB / 440.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003033/0.3117, allocations: 1.373 MB / 441.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.3117, allocations: 4 kB / 441.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005525/0.3123, allocations: 79.89 kB / 441.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001254/0.3124, allocations: 36.94 kB / 441.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.406e-05/0.3125, allocations: 12 kB / 441.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/0.3138, allocations: 1.367 MB / 443.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.3138, allocations: 4.031 kB / 443.1 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.3154, allocations: 0.7144 MB / 443.9 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000425/0.3158, allocations: 207.9 kB / 444.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000142/0.316, allocations: 12 kB / 444.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006371/0.3167, allocations: 23.98 kB / 444.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.955e-05/0.3168, allocations: 23.97 kB / 444.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.622e-05/0.3168, allocations: 11.98 kB / 444.1 MB, free: 11.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001278/0.3181, allocations: 0.6093 MB / 444.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3181, allocations: 0 / 444.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002103/0.3202, allocations: 352 kB / 445.1 MB, free: 10.68 MB / 366.1 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.0002912/0.3205, allocations: 127.1 kB / 445.2 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002334/0.3229, allocations: 0.9707 MB / 446.2 MB, free: 9.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.3229, allocations: 0 / 446.2 MB, free: 9.551 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006689/0.3236, allocations: 295.1 kB / 446.5 MB, free: 9.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001685/0.3253, allocations: 238.2 kB / 446.7 MB, free: 9.023 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004182/0.3295, allocations: 1.814 MB / 448.5 MB, free: 7.156 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007073/0.3302, allocations: 1.017 MB / 449.5 MB, free: 6.109 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000664/0.3309, allocations: 131.3 kB / 449.7 MB, free: 5.977 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/0.3311, allocations: 63.42 kB / 449.7 MB, free: 5.914 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3311, allocations: 0 / 449.7 MB, free: 5.914 MB / 366.1 MB Notification: Performance of Templates: time 0.02926/0.3604, allocations: 10.8 MB / 460.5 MB, free: 11.24 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches