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.001018/0.001018, allocations: 107.2 kB / 18.34 MB, free: 4.699 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.001041/0.001041, allocations: 192.1 kB / 19.28 MB, free: 3.766 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.315/1.315, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001202/0.001202, allocations: 52.25 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08383/0.08504, allocations: 46.64 MB / 328.7 MB, free: 3.738 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01443/0.09951, allocations: 13.67 MB / 342.4 MB, free: 5.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0081/0.1076, allocations: 4.517 MB / 346.9 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002067/0.1098, allocations: 71.69 kB / 347 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002971/0.1128, allocations: 1.029 MB / 348 MB, free: 360 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004104/0.1169, allocations: 1.375 MB / 349.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002222/0.1191, allocations: 0.9119 MB / 350.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005526/0.1247, allocations: 4.771 MB / 355.1 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004202/0.1289, allocations: 3.636 MB / 358.7 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003081/0.132, allocations: 2.185 MB / 360.9 MB, free: 3.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003293/0.1353, allocations: 2.468 MB / 363.4 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007422/0.1361, allocations: 0.5859 MB / 364 MB, free: 312 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001446/0.1375, allocations: 0.7888 MB / 364.7 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001153/0.1387, allocations: 1.336 MB / 366.1 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002987/0.1417, allocations: 2.474 MB / 368.6 MB, free: 11.69 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006533/0.1482, allocations: 7.762 MB / 376.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1483, allocations: 0 / 376.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1483, allocations: 0 / 376.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001368/0.1484, allocations: 0 / 376.3 MB, free: 3.906 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.1549/0.3034, allocations: 5.028 MB / 381.3 MB, free: 48.19 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.3034, allocations: 9.562 kB / 381.4 MB, free: 48.19 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004855/0.3083, allocations: 0.8755 MB / 382.2 MB, free: 47.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005985/0.3143, allocations: 2.654 MB / 384.9 MB, free: 46.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002535/0.3146, allocations: 274.6 kB / 385.2 MB, free: 46.31 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009811/0.3156, allocations: 361.3 kB / 385.5 MB, free: 46.19 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0114/0.327, allocations: 5.03 MB / 390.5 MB, free: 44.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.589e-05/0.3271, allocations: 3.156 kB / 390.5 MB, free: 44.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003704/0.3275, allocations: 150.5 kB / 390.7 MB, free: 44.01 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001844/0.3277, allocations: 165 kB / 390.8 MB, free: 44 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008475/0.3362, allocations: 4.381 MB / 395.2 MB, free: 42.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02042/0.3567, allocations: 15.71 MB / 410.9 MB, free: 29.28 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005297/0.362, allocations: 7.778 MB / 418.7 MB, free: 20.62 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002073/0.3641, allocations: 1.729 MB / 420.4 MB, free: 18.9 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006721/0.3708, allocations: 4.641 MB / 425.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.3709, allocations: 47.88 kB / 425.1 MB, free: 14.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=161): time 3.035e-06/0.3709, allocations: 0 / 425.1 MB, free: 14.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=164): time 0.01443/0.3853, allocations: 8.123 MB / 433.3 MB, free: 5.812 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.312e-05/0.3854, allocations: 68.72 kB / 433.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002597/0.388, allocations: 2.159 MB / 435.5 MB, free: 3.535 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001327/0.3882, allocations: 61.69 kB / 435.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006916/0.3889, allocations: 1.613 MB / 437.2 MB, free: 1.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002881/0.3892, allocations: 0.5501 MB / 437.7 MB, free: 1.297 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004788/0.3896, allocations: 359.2 kB / 438.1 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.882e-05/0.3897, allocations: 301.1 kB / 438.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/0.391, allocations: 0.9447 MB / 439.3 MB, free: 15.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001726/0.3927, allocations: 1.457 MB / 440.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003247/0.396, allocations: 2.503 MB / 443.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/0.396, allocations: 8 kB / 443.3 MB, free: 11.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005391/0.4014, allocations: 3.352 MB / 446.6 MB, free: 7.914 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.4014, allocations: 15.94 kB / 446.6 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-05/0.4015, allocations: 16 kB / 446.6 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001737/0.4032, allocations: 0.7303 MB / 447.4 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001422/0.4047, allocations: 371.4 kB / 447.7 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01203/0.4167, allocations: 11.35 MB / 459.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/0.4186, allocations: 83.95 kB / 459.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001646/0.4188, allocations: 76.38 kB / 459.2 MB, free: 10.75 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.002089/0.4209, allocations: 1.216 MB / 460.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003561/0.4212, allocations: 229.1 kB / 460.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005499/0.4267, allocations: 3.164 MB / 463.8 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.4268, allocations: 12 kB / 463.9 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/0.4268, allocations: 12 kB / 463.9 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.4268, allocations: 7.969 kB / 463.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01086/0.4377, allocations: 6.569 MB / 470.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.4377, allocations: 0 / 470.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008361/0.4385, allocations: 180 kB / 470.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002225/0.4408, allocations: 0.9053 MB / 471.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/0.4409, allocations: 43.98 kB / 471.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01638/0.4573, allocations: 16.18 MB / 487.7 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4573, allocations: 0 / 487.7 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007138/0.4645, allocations: 4.508 MB / 492.3 MB, free: 8.598 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/0.4659, allocations: 0.5255 MB / 492.8 MB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003155/0.4662, allocations: 32 kB / 492.8 MB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009749/0.4672, allocations: 79.94 kB / 492.9 MB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004088/0.4676, allocations: 164.9 kB / 493.1 MB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.4677, allocations: 40 kB / 493.1 MB, free: 7.738 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002056/0.4698, allocations: 1.493 MB / 494.6 MB, free: 6.227 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4698, allocations: 0 / 494.6 MB, free: 6.227 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002285/0.4721, allocations: 0.6992 MB / 495.3 MB, free: 5.527 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.0003377/0.4724, allocations: 165.7 kB / 495.4 MB, free: 5.359 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004767/0.4772, allocations: 3.12 MB / 498.6 MB, free: 2.176 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.4773, allocations: 0 / 498.6 MB, free: 2.176 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003246/0.4805, allocations: 2.266 MB / 0.4891 GB, free: 15.83 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002747/0.4833, allocations: 0.6441 MB / 0.4897 GB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01114/0.4944, allocations: 6.802 MB / 0.4964 GB, free: 8.352 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002274/0.4967, allocations: 2.684 MB / 0.499 GB, free: 5.641 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001463/0.4982, allocations: 479.4 kB / 0.4994 GB, free: 5.168 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003384/0.4985, allocations: 135.4 kB / 0.4996 GB, free: 5.035 MB / 398.1 MB Notification: Performance of SimCode: time 6.42e-07/0.4986, allocations: 4 kB / 0.4996 GB, free: 5.031 MB / 398.1 MB Notification: Performance of Templates: time 0.05778/0.5563, allocations: 36.17 MB / 0.5349 GB, free: 0.793 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_YD/AIMC_YD.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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