Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008123/0.0008124, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.0008397/0.0008399, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.432/1.432, allocations: 223.2 MB / 241.2 MB, free: 5.281 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002889/0.000289, allocations: 6.469 kB / 300.8 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1162, allocations: 50.43 MB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.01707/0.1333, allocations: 14.83 MB / 366.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01252/0.1459, allocations: 5.309 MB / 371.4 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003611/0.1495, allocations: 103.6 kB / 371.5 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004431/0.154, allocations: 1.014 MB / 372.5 MB, free: 6.238 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006624/0.1606, allocations: 1.484 MB / 374 MB, free: 4.746 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003034/0.1637, allocations: 0.698 MB / 374.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01054/0.1743, allocations: 6.37 MB / 381.1 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00822/0.1825, allocations: 3.542 MB / 384.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004364/0.1869, allocations: 2.035 MB / 386.6 MB, free: 8.008 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005163/0.1921, allocations: 2.615 MB / 389.3 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001691/0.1938, allocations: 328 kB / 389.6 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003412/0.1973, allocations: 0.5544 MB / 390.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002644/0.1999, allocations: 1.296 MB / 391.4 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002952/0.2029, allocations: 1.14 MB / 392.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01126/0.2142, allocations: 8.582 MB / 401.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.2142, allocations: 0 / 401.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.17e-06/0.2142, allocations: 4 kB / 401.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004253/0.2147, allocations: 3.938 kB / 401.2 MB, free: 9.449 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01728/0.232, allocations: 5.543 MB / 406.7 MB, free: 3.824 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.232, allocations: 8.031 kB / 406.7 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006365/0.2384, allocations: 1.059 MB / 407.8 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009824/0.2482, allocations: 3.416 MB / 411.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004826/0.2488, allocations: 361.7 kB / 411.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001734/0.2505, allocations: 491.9 kB / 412 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01972/0.2703, allocations: 6.853 MB / 418.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002423/0.2705, allocations: 3.906 kB / 418.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001456/0.272, allocations: 200 kB / 419.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002699/0.2723, allocations: 237.8 kB / 419.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01336/0.2857, allocations: 5.933 MB / 425.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2132/0.4989, allocations: 21.01 MB / 446.3 MB, free: 48.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007309/0.5062, allocations: 9.945 MB / 456.2 MB, free: 39.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00337/0.5096, allocations: 2.502 MB / 458.7 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00967/0.5193, allocations: 6.525 MB / 465.2 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.5194, allocations: 59.62 kB / 465.3 MB, free: 33.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=219): time 4.399e-06/0.5194, allocations: 0 / 465.3 MB, free: 33.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=226): time 0.01552/0.5349, allocations: 9.777 MB / 475.1 MB, free: 24.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.714e-05/0.535, allocations: 81.36 kB / 475.1 MB, free: 24.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004426/0.5394, allocations: 2.965 MB / 478.1 MB, free: 21.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001965/0.5396, allocations: 61.7 kB / 478.2 MB, free: 21.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001131/0.5408, allocations: 2.159 MB / 480.3 MB, free: 19.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005548/0.5413, allocations: 0.7609 MB / 481.1 MB, free: 18.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.5415, allocations: 52 kB / 481.1 MB, free: 18.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.5417, allocations: 411.2 kB / 481.5 MB, free: 18.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001923/0.5437, allocations: 1.289 MB / 482.8 MB, free: 17.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002224/0.5459, allocations: 1.928 MB / 484.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002251/0.5482, allocations: 1.595 MB / 486.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.847e-05/0.5482, allocations: 4 kB / 486.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.006133/0.5543, allocations: 4.245 MB / 490.6 MB, free: 9.074 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.5544, allocations: 15.95 kB / 490.6 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.023e-05/0.5544, allocations: 20 kB / 490.6 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002234/0.5567, allocations: 0.7856 MB / 491.4 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001999/0.5587, allocations: 0.5578 MB / 492 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008899/0.5676, allocations: 10.05 MB / 0.4903 GB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002411/0.57, allocations: 107.9 kB / 0.4904 GB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005923/0.5706, allocations: 100 kB / 0.4905 GB, free: 12.93 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003241/0.5739, allocations: 1.61 MB / 0.492 GB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008786/0.5748, allocations: 312.2 kB / 0.4923 GB, free: 11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007155/0.582, allocations: 3.916 MB / 0.4961 GB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.177e-05/0.582, allocations: 20 kB / 0.4962 GB, free: 7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.171e-05/0.5821, allocations: 16.09 kB / 0.4962 GB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-05/0.5821, allocations: 11.95 kB / 0.4962 GB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01574/0.5978, allocations: 8.568 MB / 0.5046 GB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/0.5979, allocations: 7.953 kB / 0.5046 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001587/0.5995, allocations: 347.8 kB / 0.5049 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003094/0.6026, allocations: 0.9385 MB / 0.5058 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000257/0.6029, allocations: 63.97 kB / 0.5059 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01562/0.6185, allocations: 14.43 MB / 0.52 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.6185, allocations: 0 / 0.52 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01013/0.6287, allocations: 5.706 MB / 0.5255 GB, free: 7.938 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001944/0.6307, allocations: 0.6885 MB / 0.5262 GB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009563/0.6316, allocations: 59.94 kB / 0.5263 GB, free: 7.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001914/0.6336, allocations: 119.9 kB / 0.5264 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005309/0.6341, allocations: 185.8 kB / 0.5266 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002055/0.6343, allocations: 63.98 kB / 0.5266 GB, free: 6.805 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004561/0.6389, allocations: 2.034 MB / 0.5286 GB, free: 4.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6389, allocations: 0 / 0.5286 GB, free: 4.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00404/0.643, allocations: 0.94 MB / 0.5295 GB, free: 3.832 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006785/0.6437, allocations: 226.3 kB / 0.5297 GB, free: 3.617 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006502/0.6502, allocations: 3.908 MB / 0.5336 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.6502, allocations: 0 / 0.5336 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004402/0.6546, allocations: 2.65 MB / 0.5361 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005376/0.66, allocations: 0.9003 MB / 0.537 GB, free: 12.03 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02046/0.6805, allocations: 11.19 MB / 0.548 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00435/0.6849, allocations: 3.426 MB / 0.5513 GB, free: 13.32 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002959/0.6879, allocations: 0.7565 MB / 0.552 GB, free: 12.55 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007858/0.6887, allocations: 199.4 kB / 0.5522 GB, free: 12.36 MB / 430.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6887, allocations: 0 / 0.5522 GB, free: 12.36 MB / 430.1 MB Notification: Performance of Templates: time 0.264/0.9527, allocations: 47.18 MB / 0.5983 GB, free: 125.1 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches