Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001794/0.001794, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 226.7 MB / 245.5 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001015/0.001015, allocations: 104.4 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009806/0.0009807, allocations: 55.91 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1894/0.1904, allocations: 50.44 MB / 407 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006423/0.1968, allocations: 8.137 MB / 415.2 MB, free: 19.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003465/0.2003, allocations: 2.701 MB / 417.9 MB, free: 16.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006654/0.201, allocations: 23.94 kB / 417.9 MB, free: 16.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.2021, allocations: 489.2 kB / 418.4 MB, free: 16.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007106/0.2028, allocations: 365.4 kB / 418.7 MB, free: 16.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005177/0.2034, allocations: 322.3 kB / 419.1 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009078/0.2043, allocations: 1.433 MB / 420.5 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005362/0.2048, allocations: 0.533 MB / 421 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004178/0.2053, allocations: 0.5054 MB / 421.5 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003846/0.2056, allocations: 0.5597 MB / 422.1 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.2058, allocations: 91.94 kB / 422.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002433/0.206, allocations: 128 kB / 422.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.2061, allocations: 230.9 kB / 422.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003535/0.2065, allocations: 0.6177 MB / 423.1 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008983/0.2074, allocations: 1.631 MB / 424.8 MB, free: 9.977 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.2074, allocations: 0 / 424.8 MB, free: 9.977 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.2074, allocations: 0 / 424.8 MB, free: 9.977 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.207e-05/0.2074, allocations: 0 / 424.8 MB, free: 9.977 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.001964/0.2094, allocations: 1.519 MB / 426.3 MB, free: 8.402 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.2095, allocations: 8.031 kB / 426.3 MB, free: 8.395 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005071/0.21, allocations: 183.2 kB / 426.5 MB, free: 8.215 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008622/0.2108, allocations: 0.7744 MB / 427.3 MB, free: 7.398 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.55e-05/0.2109, allocations: 82.06 kB / 427.3 MB, free: 7.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.211, allocations: 107.8 kB / 427.4 MB, free: 7.215 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.2122, allocations: 0.9575 MB / 428.4 MB, free: 6.215 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.241e-05/0.2123, allocations: 4 kB / 428.4 MB, free: 6.211 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-05/0.2124, allocations: 40 kB / 428.4 MB, free: 6.172 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.836e-05/0.2124, allocations: 24 kB / 428.5 MB, free: 6.148 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009612/0.2133, allocations: 0.6324 MB / 429.1 MB, free: 5.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003733/0.2171, allocations: 4.123 MB / 433.2 MB, free: 1.168 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008147/0.2179, allocations: 423.2 kB / 433.6 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/0.2182, allocations: 165.3 kB / 433.8 MB, free: 0.582 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.2182, allocations: 4 kB / 433.8 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/0.2182, allocations: 46.5 kB / 433.8 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 2.224e-06/0.2182, allocations: 0 / 433.8 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.002126/0.2204, allocations: 1.31 MB / 435.2 MB, free: 15.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.012e-05/0.2204, allocations: 106.8 kB / 435.3 MB, free: 15.01 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.2216, allocations: 0.8976 MB / 436.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.2216, allocations: 29.7 kB / 436.2 MB, free: 14.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004283/0.2221, allocations: 0.5914 MB / 436.8 MB, free: 13.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.2222, allocations: 153.8 kB / 436.9 MB, free: 13.3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001864/0.2224, allocations: 138.5 kB / 437.1 MB, free: 13.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2225, allocations: 334 kB / 437.4 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00032/0.2228, allocations: 176.8 kB / 437.6 MB, free: 12.65 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004854/0.2233, allocations: 493.7 kB / 438 MB, free: 12.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008374/0.2242, allocations: 0.6866 MB / 438.7 MB, free: 11.19 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2242, allocations: 0 / 438.7 MB, free: 11.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001261/0.2255, allocations: 0.747 MB / 439.5 MB, free: 10.43 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.2255, allocations: 15.16 kB / 439.5 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.2255, allocations: 12 kB / 439.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00016/0.2257, allocations: 32.84 kB / 439.5 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005553/0.2262, allocations: 167.7 kB / 439.7 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009708/0.2272, allocations: 1.292 MB / 441 MB, free: 8.785 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005366/0.2278, allocations: 35.89 kB / 441 MB, free: 8.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.402e-05/0.2278, allocations: 36 kB / 441.1 MB, free: 8.715 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006001/0.2284, allocations: 351.6 kB / 441.4 MB, free: 8.367 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004914/0.2289, allocations: 485.8 kB / 441.9 MB, free: 7.742 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007985/0.2298, allocations: 0.6717 MB / 442.6 MB, free: 6.926 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.848e-06/0.2298, allocations: 0 / 442.6 MB, free: 6.926 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001081/0.2309, allocations: 0.7232 MB / 443.3 MB, free: 6.191 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.2309, allocations: 8 kB / 443.3 MB, free: 6.184 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.2309, allocations: 16 kB / 443.3 MB, free: 6.168 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.616e-05/0.231, allocations: 32.84 kB / 443.3 MB, free: 6.133 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004891/0.2315, allocations: 163.8 kB / 443.5 MB, free: 5.973 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009823/0.2325, allocations: 1.3 MB / 444.8 MB, free: 4.543 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005638/0.2331, allocations: 36.14 kB / 444.8 MB, free: 4.508 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.965e-05/0.2331, allocations: 36 kB / 444.9 MB, free: 4.473 MB / 314.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.0002012/0.2333, allocations: 232.5 kB / 445.1 MB, free: 4.238 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.2335, allocations: 90.88 kB / 445.2 MB, free: 4.148 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000818/0.2343, allocations: 439.3 kB / 445.6 MB, free: 3.707 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.2343, allocations: 8 kB / 445.6 MB, free: 3.699 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.2343, allocations: 0 / 445.6 MB, free: 3.699 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.2343, allocations: 7.922 kB / 445.6 MB, free: 3.691 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002045/0.2364, allocations: 1.378 MB / 447 MB, free: 2.234 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.2364, allocations: 4 kB / 447 MB, free: 2.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003485/0.2368, allocations: 75.91 kB / 447.1 MB, free: 2.156 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.831e-05/0.2369, allocations: 24.78 kB / 447.1 MB, free: 2.129 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.2369, allocations: 20.16 kB / 447.1 MB, free: 2.109 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008085/0.2377, allocations: 1.28 MB / 448.4 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.2377, allocations: 8.188 kB / 448.4 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006664/0.2444, allocations: 4.868 MB / 453.3 MB, free: 11.51 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003008/0.2447, allocations: 204.1 kB / 453.5 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.2449, allocations: 12 kB / 453.5 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004095/0.2453, allocations: 23.98 kB / 453.5 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.326e-05/0.2454, allocations: 27.95 kB / 453.5 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.2454, allocations: 15.94 kB / 453.6 MB, free: 11.21 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008014/0.2462, allocations: 0.6054 MB / 454.2 MB, free: 10.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2462, allocations: 0 / 454.2 MB, free: 10.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001574/0.2478, allocations: 0.5039 MB / 454.7 MB, free: 10.09 MB / 330.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.000225/0.248, allocations: 127.2 kB / 454.8 MB, free: 9.957 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001693/0.2497, allocations: 0.9665 MB / 455.8 MB, free: 8.969 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.2498, allocations: 0 / 455.8 MB, free: 8.969 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004362/0.2502, allocations: 279.7 kB / 456 MB, free: 8.684 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.2515, allocations: 229.1 kB / 456.3 MB, free: 8.469 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003568/0.255, allocations: 2.629 MB / 458.9 MB, free: 5.766 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006321/0.2557, allocations: 1.04 MB / 459.9 MB, free: 4.695 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005997/0.2563, allocations: 131.3 kB / 460.1 MB, free: 4.562 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001665/0.2565, allocations: 59.44 kB / 460.1 MB, free: 4.504 MB / 330.7 MB Notification: Performance of SimCode: time 6.42e-07/0.2565, allocations: 0 / 460.1 MB, free: 4.504 MB / 330.7 MB Notification: Performance of Templates: time 0.02083/0.2773, allocations: 11.36 MB / 471.5 MB, free: 9.238 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches