Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001612/0.001613, 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.417/1.417, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001072/0.001072, allocations: 110.7 kB / 296.7 MB, free: 6.445 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009209/0.0009211, allocations: 51.92 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.1836, allocations: 50.44 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.006019/0.1897, allocations: 7.957 MB / 415 MB, free: 19.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003144/0.1929, allocations: 2.638 MB / 417.6 MB, free: 17.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006284/0.1935, allocations: 23.94 kB / 417.7 MB, free: 17.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001021/0.1946, allocations: 445.6 kB / 418.1 MB, free: 16.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006239/0.1952, allocations: 349.5 kB / 418.4 MB, free: 16.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003349/0.1955, allocations: 187.8 kB / 418.6 MB, free: 16.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007768/0.1963, allocations: 1.183 MB / 419.8 MB, free: 15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004575/0.1968, allocations: 475.8 kB / 420.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003664/0.1972, allocations: 454 kB / 420.7 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003364/0.1975, allocations: 497.7 kB / 421.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.939e-05/0.1976, allocations: 72 kB / 421.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002247/0.1979, allocations: 120 kB / 421.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.915e-05/0.198, allocations: 199.1 kB / 421.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003108/0.1983, allocations: 0.5246 MB / 422.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000789/0.1991, allocations: 1.409 MB / 423.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1991, allocations: 4 kB / 423.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1991, allocations: 0 / 423.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.1991, allocations: 0 / 423.5 MB, free: 11.25 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001691/0.2008, allocations: 1.305 MB / 424.8 MB, free: 9.887 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/0.2008, allocations: 12.03 kB / 424.8 MB, free: 9.875 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005937/0.2014, allocations: 179.5 kB / 425 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006974/0.2022, allocations: 0.626 MB / 425.6 MB, free: 9.035 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.292e-05/0.2022, allocations: 66.31 kB / 425.7 MB, free: 8.969 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.916e-05/0.2023, allocations: 91.84 kB / 425.8 MB, free: 8.879 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.2034, allocations: 0.8184 MB / 426.6 MB, free: 8.031 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.707e-05/0.2034, allocations: 0 / 426.6 MB, free: 8.031 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.717e-05/0.2035, allocations: 36 kB / 426.6 MB, free: 7.996 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.2035, allocations: 24 kB / 426.7 MB, free: 7.973 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008846/0.2044, allocations: 0.5426 MB / 427.2 MB, free: 7.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003014/0.2074, allocations: 3.578 MB / 430.8 MB, free: 3.613 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004401/0.2079, allocations: 242.7 kB / 431 MB, free: 3.371 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000211/0.2081, allocations: 120.8 kB / 431.1 MB, free: 3.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/0.2082, allocations: 4 kB / 431.2 MB, free: 3.246 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.418e-05/0.2082, allocations: 30.56 kB / 431.2 MB, free: 3.207 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.362e-06/0.2082, allocations: 0 / 431.2 MB, free: 3.207 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001612/0.2098, allocations: 1.083 MB / 432.3 MB, free: 2.047 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.902e-05/0.2098, allocations: 89.05 kB / 432.4 MB, free: 1.941 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006871/0.2105, allocations: 0.7662 MB / 433.1 MB, free: 1.164 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.2106, allocations: 29.7 kB / 433.1 MB, free: 1.129 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000209/0.2108, allocations: 0.5097 MB / 433.7 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.736e-05/0.2108, allocations: 114.5 kB / 433.8 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.2109, allocations: 118.2 kB / 433.9 MB, free: 384 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.2111, allocations: 382.8 kB / 434.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002668/0.2113, allocations: 133.2 kB / 434.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004597/0.2118, allocations: 454.2 kB / 434.8 MB, free: 15.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007549/0.2126, allocations: 0.6024 MB / 435.4 MB, free: 14.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.2126, allocations: 4 kB / 435.4 MB, free: 14.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00103/0.2136, allocations: 0.6424 MB / 436.1 MB, free: 13.87 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.2137, allocations: 18.84 kB / 436.1 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.2137, allocations: 19.86 kB / 436.1 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001339/0.2138, allocations: 32.86 kB / 436.2 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004389/0.2143, allocations: 151.7 kB / 436.3 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008902/0.2152, allocations: 1.296 MB / 437.6 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004239/0.2156, allocations: 43.89 kB / 437.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.2156, allocations: 32.12 kB / 437.7 MB, free: 12.14 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * 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.0002648/0.2159, allocations: 246 kB / 437.9 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.216, allocations: 79.08 kB / 438 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000637/0.2167, allocations: 333.9 kB / 438.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.2167, allocations: 4 kB / 438.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.2167, allocations: 4 kB / 438.3 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.2167, allocations: 3.984 kB / 438.3 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001507/0.2182, allocations: 1.132 MB / 439.5 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.2182, allocations: 0 / 439.5 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002723/0.2185, allocations: 59.91 kB / 439.5 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.593e-05/0.2186, allocations: 24.84 kB / 439.5 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.2186, allocations: 8 kB / 439.5 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008093/0.2194, allocations: 1.272 MB / 440.8 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.2195, allocations: 4.031 kB / 440.8 MB, free: 8.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004328/0.2238, allocations: 3.941 MB / 444.8 MB, free: 4.496 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/0.224, allocations: 180.3 kB / 444.9 MB, free: 4.301 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.042e-05/0.2241, allocations: 11.94 kB / 445 MB, free: 4.289 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003254/0.2244, allocations: 23.98 kB / 445 MB, free: 4.266 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.431e-05/0.2245, allocations: 19.91 kB / 445 MB, free: 4.246 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.2245, allocations: 12 kB / 445 MB, free: 4.234 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006138/0.2251, allocations: 0.5186 MB / 445.5 MB, free: 3.719 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2252, allocations: 4 kB / 445.5 MB, free: 3.715 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000758/0.2259, allocations: 244 kB / 445.8 MB, free: 3.477 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 (28): * Single equations (assignments): 27 * 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.000185/0.2261, allocations: 111.2 kB / 445.9 MB, free: 3.359 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008444/0.227, allocations: 480.8 kB / 446.3 MB, free: 2.879 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.227, allocations: 8 kB / 446.4 MB, free: 2.871 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003602/0.2273, allocations: 238.5 kB / 446.6 MB, free: 2.625 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009547/0.2283, allocations: 181.6 kB / 446.8 MB, free: 2.453 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002591/0.2309, allocations: 2.144 MB / 448.9 MB, free: 240 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005353/0.2315, allocations: 0.9605 MB / 449.9 MB, free: 15.25 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003521/0.2318, allocations: 98.17 kB / 450 MB, free: 15.15 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.2319, allocations: 55.42 kB / 450 MB, free: 15.09 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2319, allocations: 0 / 450 MB, free: 15.09 MB / 330.7 MB Notification: Performance of Templates: time 0.01478/0.2467, allocations: 8.586 MB / 458.6 MB, free: 6.586 MB / 330.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches