Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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 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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 114.4 kB / 17.28 MB, free: 6.199 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.001021/0.001021, allocations: 189.3 kB / 18.2 MB, free: 5.277 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.303/1.303, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001098/0.001099, allocations: 51.92 kB / 280.2 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08335/0.08446, allocations: 46.62 MB / 326.8 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01757/0.1021, allocations: 16.56 MB / 343.3 MB, free: 4.148 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01122/0.1133, allocations: 5.612 MB / 349 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00421/0.1176, allocations: 91.56 kB / 349 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004287/0.1219, allocations: 1.174 MB / 350.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006128/0.1281, allocations: 1.617 MB / 351.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002966/0.131, allocations: 0.9593 MB / 352.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008516/0.1396, allocations: 6.46 MB / 359.3 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007914/0.1475, allocations: 5.291 MB / 364.5 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005741/0.1533, allocations: 2.825 MB / 367.4 MB, free: 11.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00568/0.159, allocations: 3.343 MB / 370.7 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002276/0.1613, allocations: 0.7852 MB / 371.5 MB, free: 7.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003426/0.1647, allocations: 1.07 MB / 372.6 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002783/0.1675, allocations: 1.854 MB / 374.4 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006336/0.1739, allocations: 3.338 MB / 377.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1762/0.3501, allocations: 10.41 MB / 388.2 MB, free: 27.42 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3501, allocations: 3 kB / 388.2 MB, free: 27.42 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3501, allocations: 6.016 kB / 388.2 MB, free: 27.42 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003996/0.3505, allocations: 0.875 kB / 388.2 MB, free: 27.42 MB / 318.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.02151/0.3721, allocations: 6.5 MB / 394.7 MB, free: 24.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.3721, allocations: 9.219 kB / 394.7 MB, free: 24.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006441/0.3786, allocations: 1.06 MB / 395.8 MB, free: 24.1 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007237/0.3858, allocations: 3.335 MB / 399.1 MB, free: 22.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003153/0.3862, allocations: 362 kB / 399.4 MB, free: 22.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001715/0.3879, allocations: 490.9 kB / 399.9 MB, free: 22.9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01352/0.4014, allocations: 6.869 MB / 406.8 MB, free: 18.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000113/0.4016, allocations: 7.719 kB / 406.8 MB, free: 18.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005105/0.4021, allocations: 199.9 kB / 407 MB, free: 18.71 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001762/0.4023, allocations: 244.3 kB / 407.2 MB, free: 18.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009924/0.4122, allocations: 5.923 MB / 413.2 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03839/0.4506, allocations: 20.94 MB / 434.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01036/0.461, allocations: 9.95 MB / 444 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00472/0.4658, allocations: 2.487 MB / 446.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01334/0.4791, allocations: 6.519 MB / 453.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.953e-05/0.4792, allocations: 60.41 kB / 453.1 MB, free: 7.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=219): time 4.779e-06/0.4793, allocations: 0 / 453.1 MB, free: 7.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=226): time 0.01874/0.498, allocations: 9.673 MB / 462.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.4981, allocations: 80.97 kB / 462.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006283/0.5044, allocations: 2.992 MB / 465.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003857/0.5048, allocations: 65.7 kB / 465.9 MB, free: 10.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001743/0.5065, allocations: 2.159 MB / 468.1 MB, free: 8.066 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009071/0.5075, allocations: 0.7587 MB / 468.8 MB, free: 7.316 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001059/0.5085, allocations: 465.1 kB / 469.3 MB, free: 6.855 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.439e-05/0.5086, allocations: 301.1 kB / 469.6 MB, free: 6.559 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002044/0.5107, allocations: 1.297 MB / 470.9 MB, free: 5.258 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002388/0.5131, allocations: 1.915 MB / 472.8 MB, free: 3.082 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005059/0.5181, allocations: 3.345 MB / 476.1 MB, free: 15.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.74e-05/0.5182, allocations: 8 kB / 476.1 MB, free: 15.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007585/0.5258, allocations: 4.248 MB / 480.4 MB, free: 11.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.155e-05/0.5259, allocations: 16.44 kB / 480.4 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.96e-05/0.5259, allocations: 20 kB / 480.4 MB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002668/0.5286, allocations: 0.7791 MB / 481.2 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002516/0.5311, allocations: 0.5719 MB / 481.8 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/0.542, allocations: 10.89 MB / 492.7 MB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002994/0.545, allocations: 103.9 kB / 492.8 MB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005239/0.5456, allocations: 107.5 kB / 492.9 MB, free: 14.43 MB / 398.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 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * 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 (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003806/0.5494, allocations: 1.606 MB / 494.5 MB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001264/0.5507, allocations: 312.2 kB / 494.8 MB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007314/0.558, allocations: 3.912 MB / 498.7 MB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.782e-05/0.5581, allocations: 20 kB / 498.7 MB, free: 8.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.91e-05/0.5581, allocations: 19.94 kB / 498.7 MB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.807e-05/0.5581, allocations: 17.53 kB / 498.8 MB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01984/0.578, allocations: 8.564 MB / 0.4954 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.969e-05/0.5781, allocations: 0 / 0.4954 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001667/0.5797, allocations: 341.3 kB / 0.4958 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003264/0.583, allocations: 0.9431 MB / 0.4967 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002596/0.5833, allocations: 71.34 kB / 0.4967 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01544/0.5988, allocations: 15.68 MB / 0.5121 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.5988, allocations: 4.031 kB / 0.5121 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/0.6089, allocations: 5.696 MB / 0.5176 GB, free: 8.387 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002393/0.6113, allocations: 0.6885 MB / 0.5183 GB, free: 7.676 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001328/0.6127, allocations: 51.98 kB / 0.5183 GB, free: 7.625 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002372/0.615, allocations: 115.9 kB / 0.5185 GB, free: 7.512 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005663/0.6156, allocations: 183.3 kB / 0.5186 GB, free: 7.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002036/0.6158, allocations: 63.98 kB / 0.5187 GB, free: 7.277 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004661/0.6205, allocations: 2.062 MB / 0.5207 GB, free: 5.215 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6205, allocations: 4 kB / 0.5207 GB, free: 5.211 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005278/0.6258, allocations: 0.9452 MB / 0.5216 GB, free: 4.266 MB / 430.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 (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,8,100.0%), (2,26,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000904/0.6267, allocations: 244.2 kB / 0.5219 GB, free: 4.035 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.1989/0.8257, allocations: 5.373 MB / 0.5271 GB, free: 149.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/0.8257, allocations: 0 / 0.5271 GB, free: 149.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004505/0.8302, allocations: 2.639 MB / 0.5297 GB, free: 148.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005088/0.8354, allocations: 0.9149 MB / 0.5306 GB, free: 148.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01909/0.8545, allocations: 11.58 MB / 0.5419 GB, free: 142.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002848/0.8574, allocations: 3.428 MB / 0.5452 GB, free: 141.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002696/0.8601, allocations: 0.7647 MB / 0.546 GB, free: 141.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005882/0.8607, allocations: 195.6 kB / 0.5462 GB, free: 141.2 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.8607, allocations: 0 / 0.5462 GB, free: 141.2 MB / 430.1 MB Notification: Performance of Templates: time 0.07281/0.9335, allocations: 50.78 MB / 0.5958 GB, free: 94 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Transformer/AIMC_Transformer.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches