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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.00112/0.00112, allocations: 189.3 kB / 18.19 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.941/1.941, allocations: 205.1 MB / 224.1 MB, free: 12.43 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 48.14 kB / 280.2 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1514, allocations: 46.63 MB / 326.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.0133/0.1648, allocations: 8.107 MB / 334.9 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009389/0.1743, allocations: 2.704 MB / 337.6 MB, free: 9.922 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002987/0.1775, allocations: 27.94 kB / 337.6 MB, free: 9.895 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002946/0.1805, allocations: 485.3 kB / 338.1 MB, free: 9.418 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003611/0.1841, allocations: 365.4 kB / 338.5 MB, free: 9.059 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.1856, allocations: 311.7 kB / 338.8 MB, free: 8.754 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003546/0.1892, allocations: 1.507 MB / 340.3 MB, free: 7.238 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001271/0.1905, allocations: 0.6127 MB / 340.9 MB, free: 6.605 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001385/0.1919, allocations: 0.564 MB / 341.4 MB, free: 6.039 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007781/0.1927, allocations: 0.5987 MB / 342 MB, free: 5.438 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001999/0.1929, allocations: 140 kB / 342.2 MB, free: 5.301 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004842/0.1934, allocations: 179.9 kB / 342.4 MB, free: 5.125 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002551/0.1937, allocations: 290.9 kB / 342.6 MB, free: 4.84 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006929/0.1944, allocations: 0.6685 MB / 343.3 MB, free: 4.168 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002043/0.1964, allocations: 1.694 MB / 345 MB, free: 2.469 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.1964, allocations: 0 / 345 MB, free: 2.469 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.571e-06/0.1965, allocations: 4 kB / 345 MB, free: 2.465 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.103e-05/0.1965, allocations: 3.938 kB / 345 MB, free: 2.461 MB / 286.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.003224/0.1997, allocations: 1.507 MB / 346.5 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.96e-05/0.1998, allocations: 8.031 kB / 346.5 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007292/0.2005, allocations: 195.2 kB / 346.7 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/0.202, allocations: 0.7783 MB / 347.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.457e-05/0.2021, allocations: 74.12 kB / 347.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.2023, allocations: 100 kB / 347.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.204, allocations: 0.9575 MB / 348.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.211e-05/0.204, allocations: 7.906 kB / 348.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.054e-05/0.2041, allocations: 36 kB / 348.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.565e-05/0.2041, allocations: 24 kB / 348.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/0.2054, allocations: 0.6402 MB / 349.3 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006207/0.2116, allocations: 4.119 MB / 353.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.2128, allocations: 427 kB / 353.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003203/0.2131, allocations: 169.4 kB / 354 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.433e-05/0.2132, allocations: 11.73 kB / 354 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.184e-05/0.2132, allocations: 38.55 kB / 354.1 MB, free: 9.004 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.625e-06/0.2132, allocations: 7.938 kB / 354.1 MB, free: 8.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003002/0.2162, allocations: 1.31 MB / 355.4 MB, free: 7.613 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.2164, allocations: 110.8 kB / 355.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/0.2178, allocations: 0.8979 MB / 356.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.745e-05/0.2178, allocations: 33.7 kB / 356.4 MB, free: 6.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005799/0.2184, allocations: 0.5954 MB / 357 MB, free: 5.914 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.2186, allocations: 149.9 kB / 357.2 MB, free: 5.766 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002217/0.2188, allocations: 138.5 kB / 357.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.219, allocations: 330 kB / 357.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003566/0.2194, allocations: 176.7 kB / 357.8 MB, free: 5.121 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006307/0.22, allocations: 497.7 kB / 358.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009525/0.221, allocations: 0.6792 MB / 359 MB, free: 3.664 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.221, allocations: 4 kB / 359 MB, free: 3.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001317/0.2223, allocations: 0.7543 MB / 359.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.2224, allocations: 8 kB / 359.7 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/0.2224, allocations: 12 kB / 359.7 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002056/0.2226, allocations: 32.84 kB / 359.8 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005943/0.2232, allocations: 176.1 kB / 360 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001397/0.2246, allocations: 1.382 MB / 361.3 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006504/0.2253, allocations: 51.7 kB / 361.4 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.317e-05/0.2254, allocations: 39.98 kB / 361.4 MB, free: 1.059 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006385/0.226, allocations: 350.1 kB / 361.8 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000766/0.2268, allocations: 489.7 kB / 362.2 MB, free: 88 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008919/0.2277, allocations: 0.6562 MB / 362.9 MB, free: 15.28 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.322e-06/0.2277, allocations: 4 kB / 362.9 MB, free: 15.28 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001311/0.229, allocations: 0.7274 MB / 363.6 MB, free: 14.54 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.2291, allocations: 8 kB / 363.6 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.2291, allocations: 12 kB / 363.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001026/0.2292, allocations: 28.86 kB / 363.7 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005024/0.2297, allocations: 163.7 kB / 363.8 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00109/0.2308, allocations: 1.398 MB / 365.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000601/0.2314, allocations: 31.98 kB / 365.3 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.87e-05/0.2315, allocations: 32 kB / 365.3 MB, free: 12.73 MB / 318.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.0003064/0.2318, allocations: 232 kB / 365.5 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.2319, allocations: 90.88 kB / 365.6 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/0.2329, allocations: 439.2 kB / 366 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.233, allocations: 4 kB / 366 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.233, allocations: 0 / 366 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.233, allocations: 4 kB / 366.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002466/0.2355, allocations: 1.39 MB / 367.4 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.2355, allocations: 4 kB / 367.4 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003582/0.2358, allocations: 76.12 kB / 367.5 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001221/0.236, allocations: 24.84 kB / 367.5 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.339e-05/0.236, allocations: 12 kB / 367.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001698/0.2377, allocations: 1.375 MB / 368.9 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2378, allocations: 0 / 368.9 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001395/0.2392, allocations: 0.7095 MB / 369.6 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003986/0.2396, allocations: 211.9 kB / 369.8 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.2397, allocations: 8 kB / 369.9 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004111/0.2401, allocations: 19.98 kB / 369.9 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.2402, allocations: 35.89 kB / 369.9 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.2403, allocations: 12 kB / 369.9 MB, free: 7.809 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00104/0.2413, allocations: 0.6095 MB / 370.5 MB, free: 7.188 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2413, allocations: 0 / 370.5 MB, free: 7.188 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001751/0.2431, allocations: 352 kB / 370.9 MB, free: 6.844 MB / 318.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.0003937/0.2435, allocations: 123.1 kB / 371 MB, free: 6.715 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002362/0.2459, allocations: 0.9942 MB / 372 MB, free: 5.699 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.2459, allocations: 8 kB / 372 MB, free: 5.691 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004266/0.2463, allocations: 282.5 kB / 372.3 MB, free: 5.402 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00155/0.2479, allocations: 243.3 kB / 372.5 MB, free: 5.168 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0047/0.2526, allocations: 2.252 MB / 374.8 MB, free: 2.863 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007634/0.2534, allocations: 1.025 MB / 375.8 MB, free: 1.809 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006994/0.2541, allocations: 131.4 kB / 375.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003055/0.2544, allocations: 59.42 kB / 376 MB, free: 1.617 MB / 318.1 MB Notification: Performance of SimCode: time 1.664e-06/0.2544, allocations: 3.938 kB / 376 MB, free: 1.613 MB / 318.1 MB Notification: Performance of Templates: time 0.284/0.5384, allocations: 10.58 MB / 386.6 MB, free: 50.2 MB / 318.1 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