Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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_YD,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",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,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",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 107.4 kB / 17.16 MB, free: 6.309 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.001093/0.001093, allocations: 198 kB / 18.07 MB, free: 5.41 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.305/1.305, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001114/0.001114, allocations: 51.92 kB / 280 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08949/0.09061, allocations: 46.64 MB / 326.6 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.02245/0.1131, allocations: 13.52 MB / 340.1 MB, free: 7.293 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01181/0.125, allocations: 4.459 MB / 344.6 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002921/0.128, allocations: 71.69 kB / 344.7 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003378/0.1314, allocations: 0.9055 MB / 345.6 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004227/0.1356, allocations: 1.251 MB / 346.8 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002248/0.1379, allocations: 0.8499 MB / 347.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006046/0.144, allocations: 5.099 MB / 352.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003881/0.1479, allocations: 3.027 MB / 355.8 MB, free: 7.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002223/0.1501, allocations: 1.736 MB / 357.5 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003004/0.1531, allocations: 2.268 MB / 359.8 MB, free: 3.492 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008546/0.154, allocations: 340 kB / 360.1 MB, free: 3.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001579/0.1556, allocations: 0.5427 MB / 360.7 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001176/0.1568, allocations: 1.071 MB / 361.7 MB, free: 1.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003189/0.16, allocations: 2.185 MB / 363.9 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007459/0.1674, allocations: 7.497 MB / 371.4 MB, free: 7.828 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.1675, allocations: 0 / 371.4 MB, free: 7.828 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1675, allocations: 0 / 371.4 MB, free: 7.828 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000237/0.1677, allocations: 3.938 kB / 371.4 MB, free: 7.824 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01321/0.1809, allocations: 5.025 MB / 376.5 MB, free: 2.727 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.181, allocations: 8.031 kB / 376.5 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004394/0.1854, allocations: 0.878 MB / 377.3 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1715/0.3569, allocations: 2.575 MB / 379.9 MB, free: 47.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002961/0.3573, allocations: 279.8 kB / 380.2 MB, free: 47.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001145/0.3584, allocations: 354.4 kB / 380.5 MB, free: 47.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01098/0.3694, allocations: 5.035 MB / 385.6 MB, free: 45.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.486e-05/0.3695, allocations: 3.844 kB / 385.6 MB, free: 45.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003344/0.3699, allocations: 146.8 kB / 385.7 MB, free: 45.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001812/0.37, allocations: 164.6 kB / 385.9 MB, free: 45.61 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007554/0.3776, allocations: 4.375 MB / 390.3 MB, free: 43.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01762/0.3952, allocations: 15.92 MB / 406.2 MB, free: 33.13 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005416/0.4007, allocations: 7.784 MB / 414 MB, free: 24.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001942/0.4026, allocations: 1.71 MB / 415.7 MB, free: 23.1 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005763/0.4084, allocations: 4.662 MB / 420.3 MB, free: 18.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.4085, allocations: 47.88 kB / 420.4 MB, free: 18.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=161): time 3.907e-06/0.4085, allocations: 0 / 420.4 MB, free: 18.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=164): time 0.01374/0.4222, allocations: 8.132 MB / 428.5 MB, free: 9.996 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.4223, allocations: 68.72 kB / 428.6 MB, free: 9.914 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002216/0.4245, allocations: 2.159 MB / 430.7 MB, free: 7.719 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.812e-05/0.4246, allocations: 53.7 kB / 430.8 MB, free: 7.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006594/0.4252, allocations: 1.619 MB / 432.4 MB, free: 6.031 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002675/0.4255, allocations: 0.5463 MB / 432.9 MB, free: 5.488 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004431/0.426, allocations: 359.2 kB / 433.3 MB, free: 5.133 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.092e-05/0.426, allocations: 305.1 kB / 433.6 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.4272, allocations: 0.9408 MB / 434.5 MB, free: 3.891 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001388/0.4286, allocations: 1.457 MB / 436 MB, free: 2.219 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002712/0.4313, allocations: 2.513 MB / 438.5 MB, free: 15.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.4314, allocations: 4 kB / 438.5 MB, free: 15.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005021/0.4364, allocations: 3.346 MB / 441.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.4364, allocations: 8 kB / 441.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.917e-05/0.4365, allocations: 16 kB / 441.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001691/0.4382, allocations: 0.7407 MB / 442.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/0.4395, allocations: 375.4 kB / 443 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.4498, allocations: 10.4 MB / 453.4 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/0.451, allocations: 88 kB / 453.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.4512, allocations: 83.94 kB / 453.6 MB, free: 15.88 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[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 (195): * Single equations (assignments): 190 * 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 {(1,8,100.0%), (9,19,33.3%), (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.002145/0.4533, allocations: 1.211 MB / 454.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002962/0.4536, allocations: 225.2 kB / 455 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005082/0.4587, allocations: 3.16 MB / 458.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.4587, allocations: 16 kB / 458.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/0.4587, allocations: 12 kB / 458.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.4588, allocations: 7.969 kB / 458.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009435/0.4682, allocations: 6.569 MB / 464.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.4682, allocations: 0 / 464.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007993/0.469, allocations: 183.7 kB / 464.9 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002104/0.4711, allocations: 0.9174 MB / 465.9 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.4713, allocations: 51.86 kB / 465.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01443/0.4857, allocations: 14.78 MB / 480.7 MB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.4857, allocations: 4.125 kB / 480.7 MB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006566/0.4923, allocations: 4.514 MB / 485.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008709/0.4932, allocations: 0.5139 MB / 485.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002821/0.4935, allocations: 43.98 kB / 485.8 MB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009576/0.4944, allocations: 71.94 kB / 485.8 MB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003543/0.4948, allocations: 161 kB / 486 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.4949, allocations: 44 kB / 486 MB, free: 14.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002021/0.4969, allocations: 1.485 MB / 487.5 MB, free: 12.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.497, allocations: 0 / 487.5 MB, free: 12.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002193/0.4992, allocations: 0.707 MB / 488.2 MB, free: 12.1 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * 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,1,100.0%), (1,8,100.0%), (9,19,33.3%), (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.0003168/0.4995, allocations: 170.3 kB / 488.4 MB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004325/0.5038, allocations: 3.114 MB / 491.5 MB, free: 8.746 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.5038, allocations: 0 / 491.5 MB, free: 8.746 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002995/0.5068, allocations: 2.262 MB / 493.8 MB, free: 6.406 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002338/0.5092, allocations: 0.603 MB / 494.4 MB, free: 5.801 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/0.5195, allocations: 8.414 MB / 0.491 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002237/0.5217, allocations: 2.682 MB / 0.4936 GB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00138/0.5231, allocations: 475.4 kB / 0.4941 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000344/0.5235, allocations: 131.4 kB / 0.4942 GB, free: 10.05 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.5235, allocations: 0 / 0.4942 GB, free: 10.05 MB / 398.1 MB Notification: Performance of Templates: time 0.06118/0.5847, allocations: 36.89 MB / 0.5302 GB, free: 5.117 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_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_YD/AIMC_YD.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches