Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001017/0.001017, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.219/1.219, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008733/0.0008733, allocations: 98.22 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007415/0.0007415, allocations: 39.95 kB / 327.2 MB, free: 316 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.1882, allocations: 46.62 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006923/0.1952, allocations: 8.098 MB / 381.9 MB, free: 39.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00376/0.199, allocations: 2.719 MB / 384.6 MB, free: 37.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007384/0.1998, allocations: 35.78 kB / 384.7 MB, free: 37.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001154/0.201, allocations: 468.5 kB / 385.1 MB, free: 36.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007563/0.2018, allocations: 375.4 kB / 385.5 MB, free: 36.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006674/0.2024, allocations: 326.1 kB / 385.8 MB, free: 36.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00145/0.2039, allocations: 1.433 MB / 387.3 MB, free: 35.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006877/0.2046, allocations: 0.5307 MB / 387.8 MB, free: 35.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000613/0.2052, allocations: 0.5063 MB / 388.3 MB, free: 34.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004347/0.2057, allocations: 0.5679 MB / 388.9 MB, free: 34.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001203/0.2058, allocations: 87.19 kB / 388.9 MB, free: 34.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002465/0.206, allocations: 120 kB / 389.1 MB, free: 34.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.2062, allocations: 234.9 kB / 389.3 MB, free: 33.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003362/0.2065, allocations: 0.6138 MB / 389.9 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008823/0.2074, allocations: 1.658 MB / 391.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2074, allocations: 0 / 391.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.2074, allocations: 0 / 391.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.2074, allocations: 0 / 391.6 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.001934/0.2094, allocations: 1.499 MB / 393.1 MB, free: 30.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.2094, allocations: 12.02 kB / 393.1 MB, free: 30.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005079/0.2099, allocations: 191.2 kB / 393.3 MB, free: 29.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008461/0.2108, allocations: 0.7822 MB / 394 MB, free: 29.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.433e-05/0.2108, allocations: 74.12 kB / 394.1 MB, free: 29.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.572e-05/0.2109, allocations: 103.9 kB / 394.2 MB, free: 28.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.212, allocations: 0.9497 MB / 395.2 MB, free: 27.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.835e-05/0.2121, allocations: 11.84 kB / 395.2 MB, free: 27.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.014e-05/0.2121, allocations: 40 kB / 395.2 MB, free: 27.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.2122, allocations: 28 kB / 395.2 MB, free: 27.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009043/0.2131, allocations: 0.6324 MB / 395.9 MB, free: 27.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003432/0.2165, allocations: 4.123 MB / 400 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007893/0.2173, allocations: 427.9 kB / 400.4 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002231/0.2176, allocations: 169.4 kB / 400.6 MB, free: 22.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.2176, allocations: 7.75 kB / 400.6 MB, free: 22.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.941e-05/0.2176, allocations: 38.56 kB / 400.6 MB, free: 22.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.823e-06/0.2176, allocations: 0 / 400.6 MB, free: 22.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001772/0.2194, allocations: 1.321 MB / 402 MB, free: 20.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.2195, allocations: 110.8 kB / 402.1 MB, free: 20.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007762/0.2202, allocations: 0.8979 MB / 403 MB, free: 19.78 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.2203, allocations: 37.64 kB / 403 MB, free: 19.74 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000227/0.2205, allocations: 0.5954 MB / 403.6 MB, free: 19.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.057e-05/0.2206, allocations: 146 kB / 403.7 MB, free: 18.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.2207, allocations: 138.5 kB / 403.9 MB, free: 18.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.751e-05/0.2208, allocations: 337.9 kB / 404.2 MB, free: 18.51 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002706/0.221, allocations: 168.8 kB / 404.4 MB, free: 18.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003336/0.2214, allocations: 493.7 kB / 404.8 MB, free: 17.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005913/0.222, allocations: 0.683 MB / 405.5 MB, free: 16.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.222, allocations: 4 kB / 405.5 MB, free: 16.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008764/0.2229, allocations: 0.7503 MB / 406.3 MB, free: 16.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.2229, allocations: 8 kB / 406.3 MB, free: 16.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.2229, allocations: 12 kB / 406.3 MB, free: 16.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000118/0.223, allocations: 41.39 kB / 406.3 MB, free: 16.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004587/0.2235, allocations: 171.7 kB / 406.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005614/0.2241, allocations: 1.292 MB / 407.8 MB, free: 14.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004254/0.2245, allocations: 39.89 kB / 407.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.366e-05/0.2246, allocations: 40 kB / 407.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003922/0.2249, allocations: 346.1 kB / 408.2 MB, free: 14.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002981/0.2253, allocations: 485.8 kB / 408.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005194/0.2258, allocations: 0.6561 MB / 409.3 MB, free: 12.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.597e-06/0.2258, allocations: 8 kB / 409.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0008143/0.2266, allocations: 0.7238 MB / 410.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.626e-06/0.2266, allocations: 8 kB / 410.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2266, allocations: 8 kB / 410.1 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.827e-05/0.2267, allocations: 36.84 kB / 410.1 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004292/0.2272, allocations: 167.7 kB / 410.3 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004766/0.2276, allocations: 1.292 MB / 411.6 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004175/0.2281, allocations: 39.89 kB / 411.6 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.2281, allocations: 32 kB / 411.7 MB, free: 10.17 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.0001049/0.2282, allocations: 240.8 kB / 411.9 MB, free: 9.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.832e-05/0.2283, allocations: 90.88 kB / 412 MB, free: 9.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006343/0.229, allocations: 439 kB / 412.4 MB, free: 9.398 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.229, allocations: 4 kB / 412.4 MB, free: 9.395 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.229, allocations: 0 / 412.4 MB, free: 9.395 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.229, allocations: 0 / 412.4 MB, free: 9.395 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001376/0.2304, allocations: 1.378 MB / 413.8 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2304, allocations: 11.92 kB / 413.8 MB, free: 7.926 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003021/0.2307, allocations: 79.84 kB / 413.9 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.329e-05/0.2308, allocations: 24.84 kB / 413.9 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.149e-05/0.2308, allocations: 11.94 kB / 413.9 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004787/0.2313, allocations: 1.268 MB / 415.2 MB, free: 6.406 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2313, allocations: 4.031 kB / 415.2 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004566/0.2359, allocations: 4.885 MB / 420.1 MB, free: 1.215 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000179/0.2361, allocations: 204 kB / 420.3 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.943e-05/0.2361, allocations: 12 kB / 420.3 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003436/0.2365, allocations: 20.11 kB / 420.3 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.09e-05/0.2366, allocations: 35.89 kB / 420.3 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.2366, allocations: 11.94 kB / 420.4 MB, free: 0.918 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005695/0.2372, allocations: 0.6095 MB / 421 MB, free: 304 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2372, allocations: 0 / 421 MB, free: 304 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.001277/0.2384, allocations: 0.5079 MB / 421.5 MB, free: 15.79 MB / 314.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.000174/0.2386, allocations: 123.1 kB / 421.6 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001361/0.24, allocations: 0.962 MB / 422.6 MB, free: 14.68 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.24, allocations: 0 / 422.6 MB, free: 14.68 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003677/0.2404, allocations: 284 kB / 422.8 MB, free: 14.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.2415, allocations: 232.1 kB / 423.1 MB, free: 14.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003032/0.2446, allocations: 2.649 MB / 425.7 MB, free: 11.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005704/0.2452, allocations: 1.033 MB / 426.7 MB, free: 10.37 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005022/0.2457, allocations: 131.4 kB / 426.9 MB, free: 10.24 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.2458, allocations: 59.44 kB / 426.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of SimCode: time 1.974e-06/0.2458, allocations: 0 / 426.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of Templates: time 0.01788/0.2637, allocations: 11.39 MB / 438.3 MB, free: 14.8 MB / 330.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@2/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