Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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_SinglePhase,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_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,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_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 92.86 kB / 17.3 MB, free: 6.391 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.001561/0.001562, allocations: 172.9 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.045/2.045, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0005562/0.000556, allocations: 8 kB / 281.4 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1315, allocations: 47.59 MB / 329 MB, free: 3.738 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008988/0.1405, allocations: 7.658 MB / 336.6 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006732/0.1474, allocations: 2.666 MB / 339.3 MB, free: 9.359 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001397/0.1488, allocations: 23.94 kB / 339.3 MB, free: 9.336 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002277/0.1511, allocations: 0.4941 MB / 339.8 MB, free: 8.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002037/0.1532, allocations: 417.1 kB / 340.2 MB, free: 8.43 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006765/0.1539, allocations: 223.8 kB / 340.4 MB, free: 8.211 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002459/0.1563, allocations: 1.424 MB / 341.9 MB, free: 6.781 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008266/0.1572, allocations: 0.4967 MB / 342.4 MB, free: 6.262 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008886/0.1581, allocations: 477.7 kB / 342.8 MB, free: 5.793 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007964/0.1589, allocations: 0.5363 MB / 343.4 MB, free: 5.254 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.159, allocations: 68 kB / 343.4 MB, free: 5.188 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003034/0.1593, allocations: 108 kB / 343.5 MB, free: 5.082 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001873/0.1595, allocations: 210.9 kB / 343.7 MB, free: 4.875 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006561/0.1602, allocations: 0.6001 MB / 344.3 MB, free: 4.266 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001747/0.1619, allocations: 1.634 MB / 346 MB, free: 2.625 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.162, allocations: 4 kB / 346 MB, free: 2.621 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.162, allocations: 0 / 346 MB, free: 2.621 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.081e-05/0.162, allocations: 4 kB / 346 MB, free: 2.617 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002789/0.1648, allocations: 1.289 MB / 347.3 MB, free: 1.273 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.064e-05/0.1649, allocations: 8.031 kB / 347.3 MB, free: 1.266 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000789/0.1657, allocations: 191.3 kB / 347.5 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001462/0.1671, allocations: 0.7463 MB / 348.2 MB, free: 296 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.1673, allocations: 78 kB / 348.3 MB, free: 220 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001733/0.1674, allocations: 103.9 kB / 348.4 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001966/0.1694, allocations: 0.9503 MB / 349.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.583e-05/0.1695, allocations: 7.938 kB / 349.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.1696, allocations: 44 kB / 349.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.655e-05/0.1696, allocations: 24 kB / 349.4 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001464/0.1711, allocations: 0.6637 MB / 350.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006076/0.1772, allocations: 3.98 MB / 354.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000874/0.1781, allocations: 459.5 kB / 354.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006875/0.1788, allocations: 268.7 kB / 354.8 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.106e-05/0.1789, allocations: 4 kB / 354.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.19e-05/0.1789, allocations: 42.5 kB / 354.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.156e-06/0.1789, allocations: 4 kB / 354.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003906/0.1828, allocations: 1.58 MB / 356.4 MB, free: 7.719 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.382e-05/0.1829, allocations: 89.11 kB / 356.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001271/0.1842, allocations: 0.8333 MB / 357.3 MB, free: 6.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.1843, allocations: 29.7 kB / 357.3 MB, free: 6.734 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004313/0.1847, allocations: 0.5681 MB / 357.9 MB, free: 6.156 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.1848, allocations: 157.8 kB / 358.1 MB, free: 6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.193e-05/0.1849, allocations: 69.67 kB / 358.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1851, allocations: 330 kB / 358.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003606/0.1855, allocations: 181.9 kB / 358.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000593/0.1861, allocations: 483.6 kB / 359.1 MB, free: 4.812 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009912/0.1871, allocations: 0.6914 MB / 359.8 MB, free: 3.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.1871, allocations: 4 kB / 359.8 MB, free: 3.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001551/0.1886, allocations: 0.7983 MB / 360.6 MB, free: 3.172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.51e-05/0.1887, allocations: 8 kB / 360.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/0.1887, allocations: 12 kB / 360.6 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003581/0.1891, allocations: 89.91 kB / 360.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005449/0.1897, allocations: 167.7 kB / 360.9 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002433/0.1921, allocations: 2.872 MB / 363.7 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006514/0.1928, allocations: 47.89 kB / 363.8 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.506e-05/0.1928, allocations: 36 kB / 363.8 MB, free: 15.67 MB / 318.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 (85): * Single equations (assignments): 83 * 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.000462/0.1933, allocations: 257.5 kB / 364.1 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.1934, allocations: 90.97 kB / 364.2 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.1945, allocations: 0.5107 MB / 364.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.1945, allocations: 4 kB / 364.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.1945, allocations: 4 kB / 364.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.1945, allocations: 3.984 kB / 364.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002268/0.1968, allocations: 1.496 MB / 366.2 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.1968, allocations: 4 kB / 366.2 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003261/0.1971, allocations: 79.78 kB / 366.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002236/0.1974, allocations: 73.89 kB / 366.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.1974, allocations: 8 kB / 366.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002264/0.1997, allocations: 2.86 MB / 369.2 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.1997, allocations: 3.938 kB / 369.2 MB, free: 9.902 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001373/0.2011, allocations: 0.8166 MB / 370 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003166/0.2014, allocations: 204.2 kB / 370.2 MB, free: 8.816 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.179e-05/0.2015, allocations: 11.94 kB / 370.2 MB, free: 8.805 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004424/0.2019, allocations: 39.97 kB / 370.3 MB, free: 8.766 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.534e-05/0.2021, allocations: 31.95 kB / 370.3 MB, free: 8.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.908e-05/0.2021, allocations: 19.98 kB / 370.3 MB, free: 8.715 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008876/0.203, allocations: 0.5732 MB / 370.9 MB, free: 8.145 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.203, allocations: 4 kB / 370.9 MB, free: 8.141 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001059/0.2041, allocations: 208 kB / 371.1 MB, free: 7.938 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 (39): * Single equations (assignments): 37 * 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.0002795/0.2043, allocations: 115.2 kB / 371.2 MB, free: 7.812 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001502/0.2059, allocations: 0.7156 MB / 371.9 MB, free: 7.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.2059, allocations: 5.875 kB / 371.9 MB, free: 7.066 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007127/0.2066, allocations: 453.9 kB / 372.4 MB, free: 6.598 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.208, allocations: 219.2 kB / 372.6 MB, free: 6.387 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003397/0.2114, allocations: 2.256 MB / 374.9 MB, free: 4.082 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006679/0.2121, allocations: 1.013 MB / 375.9 MB, free: 3.043 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000481/0.2126, allocations: 107.3 kB / 376 MB, free: 2.934 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.2127, allocations: 55.44 kB / 376 MB, free: 2.879 MB / 318.1 MB Notification: Performance of SimCode: time 1.773e-06/0.2127, allocations: 0 / 376 MB, free: 2.879 MB / 318.1 MB Notification: Performance of Templates: time 0.2398/0.4525, allocations: 10.09 MB / 386.1 MB, free: 49.62 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_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_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches