Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001873/0.001879, 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.35/1.35, allocations: 226.8 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000968/0.000968, allocations: 104.7 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009788/0.000979, allocations: 55.91 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1964/0.1974, allocations: 50.44 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.005883/0.2033, allocations: 7.133 MB / 414.2 MB, free: 20.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002963/0.2063, allocations: 2.371 MB / 416.6 MB, free: 18.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004079/0.2068, allocations: 16 kB / 416.6 MB, free: 18.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009293/0.2077, allocations: 437.7 kB / 417 MB, free: 17.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005565/0.2083, allocations: 337.6 kB / 417.3 MB, free: 17.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.2086, allocations: 175.9 kB / 417.5 MB, free: 17.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006884/0.2093, allocations: 1.144 MB / 418.6 MB, free: 16.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004418/0.2097, allocations: 450.6 kB / 419.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000429/0.2101, allocations: 418.1 kB / 419.5 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000316/0.2105, allocations: 469.8 kB / 420 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.411e-05/0.2106, allocations: 75.94 kB / 420 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002066/0.2108, allocations: 112 kB / 420.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.073e-05/0.2109, allocations: 183.2 kB / 420.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002945/0.2112, allocations: 0.5052 MB / 420.8 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007582/0.2119, allocations: 1.386 MB / 422.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.212, allocations: 0 / 422.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.212, allocations: 0 / 422.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.488e-05/0.212, allocations: 0 / 422.2 MB, free: 12.6 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001581/0.2136, allocations: 1.247 MB / 423.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.2136, allocations: 8.031 kB / 423.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004483/0.2141, allocations: 139.6 kB / 423.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007475/0.2148, allocations: 0.6378 MB / 424.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.19e-05/0.2149, allocations: 70.3 kB / 424.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.26e-05/0.215, allocations: 80.28 kB / 424.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009931/0.216, allocations: 0.7793 MB / 425.2 MB, free: 9.523 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.216, allocations: 11.88 kB / 425.2 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.482e-05/0.2161, allocations: 32 kB / 425.2 MB, free: 9.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.2161, allocations: 20 kB / 425.2 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008521/0.2169, allocations: 0.5153 MB / 425.7 MB, free: 8.949 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002936/0.2199, allocations: 3.407 MB / 429.1 MB, free: 5.328 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003893/0.2203, allocations: 231.3 kB / 429.4 MB, free: 5.098 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.2205, allocations: 119 kB / 429.5 MB, free: 4.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.822e-05/0.2205, allocations: 7.984 kB / 429.5 MB, free: 4.973 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.387e-05/0.2206, allocations: 34.56 kB / 429.5 MB, free: 4.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.543e-06/0.2206, allocations: 0 / 429.5 MB, free: 4.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001583/0.2222, allocations: 1.051 MB / 430.6 MB, free: 3.801 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.69e-05/0.2222, allocations: 81.34 kB / 430.7 MB, free: 3.703 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006666/0.2229, allocations: 0.7349 MB / 431.4 MB, free: 2.961 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.2229, allocations: 29.7 kB / 431.4 MB, free: 2.926 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001892/0.2231, allocations: 0.4904 MB / 431.9 MB, free: 2.426 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.672e-05/0.2231, allocations: 110.5 kB / 432 MB, free: 2.316 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.2233, allocations: 110.2 kB / 432.1 MB, free: 2.199 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.404e-05/0.2233, allocations: 378.8 kB / 432.5 MB, free: 1.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002278/0.2236, allocations: 125.2 kB / 432.6 MB, free: 1.699 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003074/0.2239, allocations: 418.2 kB / 433 MB, free: 1.156 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005391/0.2244, allocations: 0.5714 MB / 433.6 MB, free: 460 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.2244, allocations: 4 kB / 433.6 MB, free: 456 kB / 298.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008628/0.2253, allocations: 0.6147 MB / 434.2 MB, free: 15.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.2253, allocations: 10.81 kB / 434.2 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.2254, allocations: 12.66 kB / 434.2 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001459/0.2255, allocations: 36.84 kB / 434.3 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004365/0.226, allocations: 139.8 kB / 434.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009563/0.2269, allocations: 1.284 MB / 435.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000398/0.2273, allocations: 31.89 kB / 435.7 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.098e-05/0.2274, allocations: 36 kB / 435.8 MB, free: 14.14 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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.0003124/0.2277, allocations: 242 kB / 436 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.283e-05/0.2278, allocations: 71.16 kB / 436.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006751/0.2285, allocations: 325.7 kB / 436.4 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2285, allocations: 7.828 kB / 436.4 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2285, allocations: 3.938 kB / 436.4 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2285, allocations: 48 / 436.4 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00151/0.23, allocations: 1.101 MB / 437.5 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.2301, allocations: 8.219 kB / 437.5 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002519/0.2303, allocations: 59.91 kB / 437.6 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.233e-05/0.2304, allocations: 24.78 kB / 437.6 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.2304, allocations: 8 kB / 437.6 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000893/0.2313, allocations: 1.268 MB / 438.9 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.2314, allocations: 7.969 kB / 438.9 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004272/0.2356, allocations: 3.853 MB / 442.7 MB, free: 6.629 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002029/0.2359, allocations: 180.1 kB / 442.9 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.921e-05/0.2359, allocations: 8 kB / 442.9 MB, free: 6.426 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003056/0.2363, allocations: 15.98 kB / 442.9 MB, free: 6.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.425e-05/0.2363, allocations: 32 kB / 443 MB, free: 6.379 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.2364, allocations: 8 kB / 443 MB, free: 6.371 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000639/0.237, allocations: 0.5029 MB / 443.5 MB, free: 5.871 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.237, allocations: 0 / 443.5 MB, free: 5.871 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008676/0.2379, allocations: 231.9 kB / 443.7 MB, free: 5.645 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * 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 (27): * Single equations (assignments): 26 * 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.000204/0.2381, allocations: 127.1 kB / 443.8 MB, free: 5.512 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008603/0.239, allocations: 455.9 kB / 444.3 MB, free: 5.055 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.239, allocations: 0 / 444.3 MB, free: 5.055 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003703/0.2394, allocations: 240.1 kB / 444.5 MB, free: 4.809 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009431/0.2403, allocations: 167.7 kB / 444.7 MB, free: 4.648 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002665/0.243, allocations: 2.081 MB / 446.7 MB, free: 2.492 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005414/0.2436, allocations: 0.9451 MB / 447.7 MB, free: 1.52 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003899/0.2439, allocations: 90.02 kB / 447.8 MB, free: 1.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.2441, allocations: 51.42 kB / 447.8 MB, free: 1.379 MB / 314.7 MB Notification: Performance of SimCode: time 4.91e-07/0.2441, allocations: 3.938 kB / 447.8 MB, free: 1.375 MB / 314.7 MB Notification: Performance of Templates: time 0.01503/0.2591, allocations: 8.291 MB / 456.1 MB, free: 9.164 MB / 330.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches