Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|PIQS.x|imcQS.rotorCage.port_p.reference.gamma|loadInertiaQS.w|powerSensorQS.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|PIQS.x|imcQS.rotorCage.port_p.reference.gamma|loadInertiaQS.w|powerSensorQS.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009304/0.0009305, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.0009581/0.0009581, allocations: 178.4 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 223.2 MB / 241.1 MB, free: 5.227 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002221/0.0002221, allocations: 9.812 kB / 300.7 MB, free: 5.559 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08302/0.08325, allocations: 50.42 MB / 351.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01846/0.1017, allocations: 19.94 MB / 371.1 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01514/0.1169, allocations: 7.37 MB / 378.5 MB, free: 15.99 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004213/0.1212, allocations: 159.5 kB / 378.6 MB, free: 15.83 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004844/0.126, allocations: 1.493 MB / 380.1 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007361/0.1334, allocations: 2.533 MB / 382.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003718/0.1372, allocations: 1.251 MB / 383.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01417/0.1513, allocations: 10.12 MB / 394 MB, free: 424 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0317/0.1831, allocations: 19.11 MB / 413.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00558/0.1887, allocations: 3.98 MB / 417.1 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006264/0.195, allocations: 4.265 MB / 421.4 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002253/0.1973, allocations: 0.6562 MB / 422 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003307/0.2006, allocations: 0.9878 MB / 423 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001967/0.2026, allocations: 2.033 MB / 425.1 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1768/0.3794, allocations: 2.128 MB / 427.2 MB, free: 23.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01751/0.397, allocations: 19.55 MB / 446.7 MB, free: 16.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.397, allocations: 2 kB / 446.7 MB, free: 16.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.397, allocations: 0 / 446.7 MB, free: 16.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000731/0.3977, allocations: 0 / 446.7 MB, free: 16.41 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.03265/0.4304, allocations: 11.27 MB / 458 MB, free: 10.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.4305, allocations: 10.5 kB / 458 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03436/0.4648, allocations: 6.166 MB / 464.2 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0168/0.4817, allocations: 6.992 MB / 471.2 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000745/0.4825, allocations: 0.7195 MB / 471.9 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004108/0.4866, allocations: 0.944 MB / 472.8 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04051/0.5271, allocations: 15.99 MB / 488.8 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006062/0.5277, allocations: 7.906 kB / 488.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003835/0.5316, allocations: 399.3 kB / 489.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007825/0.5324, allocations: 0.5652 MB / 489.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0346/0.567, allocations: 15.03 MB / 0.493 GB, free: 1.078 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09494/0.662, allocations: 52.69 MB / 0.5445 GB, free: 12.19 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02025/0.6823, allocations: 20.04 MB / 0.564 GB, free: 6.188 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007004/0.683, allocations: 184.5 kB / 0.5642 GB, free: 6.004 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.451e-05/0.6831, allocations: 78.09 kB / 0.5643 GB, free: 5.918 MB / 446.1 MB Notification: Performance of pre-optimization done (n=453): time 6.893e-06/0.6831, allocations: 0 / 0.5643 GB, free: 5.918 MB / 446.1 MB Notification: Performance of matching and sorting (n=458): time 0.04935/0.7325, allocations: 20.83 MB / 0.5846 GB, free: 0.9922 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.265e-05/0.7326, allocations: 98.97 kB / 0.5847 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2137/0.9463, allocations: 4.416 MB / 0.589 GB, free: 150.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007982/0.9472, allocations: 99.52 kB / 0.5891 GB, free: 150.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002211/0.9494, allocations: 4.184 MB / 0.5932 GB, free: 148.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001345/0.9507, allocations: 1.559 MB / 0.5947 GB, free: 147.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002924/0.951, allocations: 123.2 kB / 0.5949 GB, free: 147.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002392/0.9513, allocations: 0.5589 MB / 0.5954 GB, free: 146.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00418/0.9555, allocations: 3.074 MB / 0.5984 GB, free: 145.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004831/0.9603, allocations: 5.199 MB / 0.6035 GB, free: 141.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005072/0.9654, allocations: 4.273 MB / 0.6077 GB, free: 139.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.264e-05/0.9655, allocations: 19.09 kB / 0.6077 GB, free: 139.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01398/0.9794, allocations: 9.864 MB / 0.6173 GB, free: 135.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.297e-05/0.9795, allocations: 35.41 kB / 0.6173 GB, free: 135.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001046/0.9796, allocations: 67.59 kB / 0.6174 GB, free: 135.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003286/0.9829, allocations: 1.37 MB / 0.6187 GB, free: 135.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004774/0.9877, allocations: 1.391 MB / 0.6201 GB, free: 134.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0138/1.002, allocations: 11.92 MB / 0.6317 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004872/1.006, allocations: 355.2 kB / 0.6321 GB, free: 123.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008664/1.007, allocations: 295.2 kB / 0.6324 GB, free: 123 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 311 * 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 (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006452/1.014, allocations: 3.887 MB / 0.6362 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009949/1.015, allocations: 458.2 kB / 0.6366 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01235/1.027, allocations: 8.584 MB / 0.645 GB, free: 111.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008626/1.036, allocations: 6.265 MB / 0.6511 GB, free: 105.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.877e-05/1.036, allocations: 12 kB / 0.6511 GB, free: 105.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.096e-05/1.036, allocations: 27.86 kB / 0.6511 GB, free: 105.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02592/1.062, allocations: 17.6 MB / 0.6683 GB, free: 87.51 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-05/1.062, allocations: 11.98 kB / 0.6683 GB, free: 87.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003046/1.065, allocations: 0.7996 MB / 0.6691 GB, free: 86.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003034/1.068, allocations: 1.274 MB / 0.6704 GB, free: 85.42 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000311/1.068, allocations: 104 kB / 0.6705 GB, free: 85.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01215/1.081, allocations: 10.86 MB / 0.6811 GB, free: 74.22 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.792e-06/1.081, allocations: 11.94 kB / 0.6811 GB, free: 74.21 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01531/1.096, allocations: 11.97 MB / 0.6928 GB, free: 61.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003203/1.099, allocations: 1.1 MB / 0.6938 GB, free: 60.78 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001464/1.101, allocations: 95.98 kB / 0.6939 GB, free: 60.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003025/1.104, allocations: 231.8 kB / 0.6942 GB, free: 60.46 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000596/1.104, allocations: 323.8 kB / 0.6945 GB, free: 60.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002671/1.105, allocations: 136 kB / 0.6946 GB, free: 60.01 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004608/1.109, allocations: 3.05 MB / 0.6976 GB, free: 56.95 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.91e-07/1.109, allocations: 0 / 0.6976 GB, free: 56.95 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007086/1.116, allocations: 1.724 MB / 0.6993 GB, free: 55.23 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * 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 (418): * Single equations (assignments): 412 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,44.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001338/1.118, allocations: 0.5427 MB / 0.6998 GB, free: 54.84 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01122/1.129, allocations: 7.989 MB / 0.7076 GB, free: 46.84 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/1.129, allocations: 0 / 0.7076 GB, free: 46.84 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006006/1.135, allocations: 3.969 MB / 0.7115 GB, free: 42.85 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004499/1.139, allocations: 0.9245 MB / 0.7124 GB, free: 41.93 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03001/1.169, allocations: 21.41 MB / 0.7333 GB, free: 20.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006057/1.175, allocations: 6.667 MB / 0.7398 GB, free: 13.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005342/1.181, allocations: 2.128 MB / 0.7419 GB, free: 11.57 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001104/1.182, allocations: 375.4 kB / 0.7422 GB, free: 11.2 MB / 462.1 MB Notification: Performance of SimCode: time 7.61e-07/1.182, allocations: 0 / 0.7422 GB, free: 11.2 MB / 462.1 MB Notification: Performance of Templates: time 0.3062/1.488, allocations: 69.35 MB / 0.8099 GB, free: 119.2 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches