Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 109 kB / 17.15 MB, free: 6.328 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.001283/0.001284, allocations: 198 kB / 18.07 MB, free: 5.434 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.82/1.82, allocations: 205.1 MB / 223.9 MB, free: 12.49 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.00129/0.001291, allocations: 55.92 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.136, allocations: 46.63 MB / 326.6 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01326/0.1494, allocations: 8.016 MB / 334.6 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005814/0.1552, allocations: 2.643 MB / 337.3 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001224/0.1566, allocations: 23.94 kB / 337.3 MB, free: 10.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.1584, allocations: 0.4902 MB / 337.8 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001537/0.16, allocations: 405.2 kB / 338.2 MB, free: 9.266 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005774/0.1606, allocations: 223.8 kB / 338.4 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00162/0.1622, allocations: 1.397 MB / 339.8 MB, free: 7.645 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007893/0.163, allocations: 0.4928 MB / 340.3 MB, free: 7.129 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008028/0.1638, allocations: 0.5016 MB / 340.8 MB, free: 6.625 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007588/0.1646, allocations: 0.5599 MB / 341.3 MB, free: 6.062 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001581/0.1648, allocations: 88 kB / 341.4 MB, free: 5.977 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003884/0.1652, allocations: 120 kB / 341.5 MB, free: 5.859 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002534/0.1654, allocations: 226.9 kB / 341.8 MB, free: 5.637 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007728/0.1662, allocations: 0.6141 MB / 342.4 MB, free: 5.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001693/0.1679, allocations: 1.658 MB / 344 MB, free: 3.355 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.1679, allocations: 0 / 344 MB, free: 3.355 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.168, allocations: 7.938 kB / 344 MB, free: 3.348 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.641e-05/0.168, allocations: 0 / 344 MB, free: 3.348 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.00263/0.1706, allocations: 1.453 MB / 345.5 MB, free: 1.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.1707, allocations: 8.031 kB / 345.5 MB, free: 1.832 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006938/0.1714, allocations: 187.4 kB / 345.7 MB, free: 1.648 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.1725, allocations: 0.73 MB / 346.4 MB, free: 0.875 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.11e-05/0.1725, allocations: 70 kB / 346.5 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.1727, allocations: 103.9 kB / 346.6 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001639/0.1743, allocations: 0.9346 MB / 347.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.494e-05/0.1744, allocations: 3.906 kB / 347.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.111e-05/0.1745, allocations: 40 kB / 347.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.47e-05/0.1745, allocations: 24 kB / 347.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/0.1758, allocations: 0.6325 MB / 348.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005312/0.1811, allocations: 3.93 MB / 352.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007165/0.1819, allocations: 428.7 kB / 352.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005728/0.1825, allocations: 261.4 kB / 352.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.737e-05/0.1825, allocations: 8.266 kB / 352.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.1825, allocations: 38.89 kB / 352.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.665e-06/0.1826, allocations: 0 / 352.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002944/0.1855, allocations: 1.399 MB / 354.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.1856, allocations: 85.09 kB / 354.4 MB, free: 8.551 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/0.1867, allocations: 0.8252 MB / 355.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.36e-05/0.1867, allocations: 37.7 kB / 355.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000398/0.1871, allocations: 0.5486 MB / 355.8 MB, free: 7.113 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.1872, allocations: 165.7 kB / 355.9 MB, free: 6.949 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001795/0.1874, allocations: 130.5 kB / 356.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.1875, allocations: 334 kB / 356.4 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000332/0.1879, allocations: 169.9 kB / 356.5 MB, free: 6.316 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005425/0.1884, allocations: 456 kB / 357 MB, free: 5.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000959/0.1894, allocations: 0.6583 MB / 357.6 MB, free: 4.945 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.1894, allocations: 4 kB / 357.7 MB, free: 4.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001368/0.1908, allocations: 0.7706 MB / 358.4 MB, free: 4.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.387e-05/0.1908, allocations: 8 kB / 358.4 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.955e-05/0.1909, allocations: 8 kB / 358.4 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003032/0.1912, allocations: 85.81 kB / 358.5 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004867/0.1917, allocations: 159.7 kB / 358.7 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002483/0.1942, allocations: 2.872 MB / 361.6 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006359/0.1948, allocations: 24 kB / 361.6 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.997e-05/0.1949, allocations: 39.98 kB / 361.6 MB, free: 0.6992 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005443/0.1954, allocations: 260.2 kB / 361.9 MB, free: 448 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.1956, allocations: 90.97 kB / 362 MB, free: 356 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000958/0.1966, allocations: 499.4 kB / 362.4 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.1966, allocations: 4.125 kB / 362.4 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1966, allocations: 7.938 kB / 362.5 MB, free: 15.83 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.1966, allocations: 11.92 kB / 362.5 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002284/0.1989, allocations: 1.43 MB / 363.9 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1989, allocations: 0 / 363.9 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002996/0.1992, allocations: 75.89 kB / 364 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000204/0.1994, allocations: 69.91 kB / 364 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.87e-05/0.1995, allocations: 15.92 kB / 364.1 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002456/0.2019, allocations: 2.852 MB / 366.9 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.2019, allocations: 4.031 kB / 366.9 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.2033, allocations: 0.7613 MB / 367.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003622/0.2037, allocations: 196 kB / 367.9 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.2038, allocations: 19.92 kB / 367.9 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004166/0.2042, allocations: 23.98 kB / 367.9 MB, free: 9.957 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.2043, allocations: 31.95 kB / 367.9 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.139e-05/0.2044, allocations: 16 kB / 368 MB, free: 9.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001064/0.2054, allocations: 0.5693 MB / 368.5 MB, free: 9.348 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2054, allocations: 0 / 368.5 MB, free: 9.348 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001175/0.2066, allocations: 203.9 kB / 368.7 MB, free: 9.148 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (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.0003596/0.207, allocations: 131.2 kB / 368.9 MB, free: 9.008 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.2085, allocations: 0.6704 MB / 369.5 MB, free: 8.312 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.399e-05/0.2085, allocations: 8 kB / 369.5 MB, free: 8.305 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007671/0.2093, allocations: 435 kB / 370 MB, free: 7.855 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.2106, allocations: 215.2 kB / 370.2 MB, free: 7.645 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003723/0.2143, allocations: 2.135 MB / 372.3 MB, free: 5.461 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008925/0.2152, allocations: 1.001 MB / 373.3 MB, free: 4.434 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005065/0.2157, allocations: 107.2 kB / 373.4 MB, free: 4.324 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.2159, allocations: 59.44 kB / 373.5 MB, free: 4.266 MB / 318.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2159, allocations: 0 / 373.5 MB, free: 4.266 MB / 318.1 MB Notification: Performance of Templates: time 0.2395/0.4554, allocations: 10.03 MB / 383.5 MB, free: 50.91 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches