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.001372/0.001372, allocations: 109.2 kB / 17.73 MB, free: 5.316 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.001503/0.001503, allocations: 188.2 kB / 18.66 MB, free: 4.387 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.469/1.469, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001309/0.00131, allocations: 51.92 kB / 328.5 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1034, allocations: 46.61 MB / 375.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.2186/0.322, allocations: 13.67 MB / 388.8 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01012/0.3322, allocations: 4.514 MB / 393.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003444/0.3357, allocations: 73.16 kB / 393.4 MB, free: 2.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004298/0.34, allocations: 1.043 MB / 394.5 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006187/0.3463, allocations: 1.38 MB / 395.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003027/0.3493, allocations: 0.9052 MB / 396.7 MB, free: 364 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008016/0.3573, allocations: 4.752 MB / 401.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00744/0.3648, allocations: 3.644 MB / 405.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005542/0.3704, allocations: 2.19 MB / 407.3 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006003/0.3764, allocations: 2.46 MB / 409.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002731/0.3792, allocations: 0.5886 MB / 410.4 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004009/0.3832, allocations: 0.793 MB / 411.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002538/0.3858, allocations: 1.333 MB / 412.5 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006043/0.3919, allocations: 2.472 MB / 415 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01186/0.4037, allocations: 7.787 MB / 422.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4038, allocations: 0 / 422.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4038, allocations: 4 kB / 422.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002894/0.4041, allocations: 0 / 422.8 MB, free: 15.96 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.0163/0.4204, allocations: 5.144 MB / 427.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.4205, allocations: 12.03 kB / 427.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005239/0.4257, allocations: 0.8882 MB / 428.8 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007046/0.4328, allocations: 2.664 MB / 431.5 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003142/0.4331, allocations: 279.5 kB / 431.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001496/0.4346, allocations: 371.9 kB / 432.1 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01302/0.4477, allocations: 5.029 MB / 437.1 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001417/0.4478, allocations: 3.953 kB / 437.1 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009675/0.4488, allocations: 155.9 kB / 437.3 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001844/0.449, allocations: 163.2 kB / 437.5 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00964/0.4587, allocations: 4.377 MB / 441.8 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02898/0.4877, allocations: 15.75 MB / 457.6 MB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008365/0.4961, allocations: 7.776 MB / 465.4 MB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00306/0.4992, allocations: 1.714 MB / 467.1 MB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009327/0.5085, allocations: 4.648 MB / 471.7 MB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.103e-05/0.5087, allocations: 55.81 kB / 471.8 MB, free: 13.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=161): time 6.382e-06/0.5087, allocations: 0 / 471.8 MB, free: 13.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=164): time 0.02043/0.5291, allocations: 8.172 MB / 479.9 MB, free: 4.996 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.5292, allocations: 72.7 kB / 480 MB, free: 4.914 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004543/0.5338, allocations: 2.159 MB / 482.2 MB, free: 2.719 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002337/0.534, allocations: 49.7 kB / 482.2 MB, free: 2.664 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001515/0.5356, allocations: 1.663 MB / 483.9 MB, free: 0.9844 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006433/0.5362, allocations: 0.5771 MB / 484.5 MB, free: 412 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008119/0.537, allocations: 355.4 kB / 484.8 MB, free: 48 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.5372, allocations: 313 kB / 485.1 MB, free: 15.74 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001798/0.539, allocations: 0.9408 MB / 486.1 MB, free: 14.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002137/0.5412, allocations: 1.457 MB / 487.5 MB, free: 13.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003823/0.545, allocations: 2.507 MB / 490 MB, free: 10.42 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.565e-05/0.545, allocations: 4 kB / 490 MB, free: 10.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.006328/0.5514, allocations: 3.356 MB / 493.4 MB, free: 7.016 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.5514, allocations: 12 kB / 493.4 MB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.439e-05/0.5515, allocations: 19.94 kB / 493.4 MB, free: 6.984 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001934/0.5534, allocations: 0.7398 MB / 494.2 MB, free: 6.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001487/0.5549, allocations: 375.4 kB / 494.5 MB, free: 5.863 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01268/0.5676, allocations: 11.36 MB / 0.494 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002144/0.5698, allocations: 95.78 kB / 0.4941 GB, free: 9.848 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000448/0.5703, allocations: 79.98 kB / 0.4942 GB, free: 9.77 MB / 430.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.002709/0.573, allocations: 1.212 MB / 0.4954 GB, free: 8.547 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00086/0.5739, allocations: 238.5 kB / 0.4956 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00617/0.5801, allocations: 3.16 MB / 0.4987 GB, free: 5.09 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.622e-05/0.5801, allocations: 19.94 kB / 0.4987 GB, free: 5.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-05/0.5802, allocations: 12 kB / 0.4987 GB, free: 5.059 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-05/0.5802, allocations: 7.969 kB / 0.4987 GB, free: 5.051 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/0.5945, allocations: 6.572 MB / 0.5051 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/0.5945, allocations: 4 kB / 0.5052 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008515/0.5954, allocations: 176 kB / 0.5053 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002497/0.5979, allocations: 0.8991 MB / 0.5062 GB, free: 13.24 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001584/0.5981, allocations: 39.98 kB / 0.5062 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01832/0.6164, allocations: 16.19 MB / 0.522 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.291e-06/0.6165, allocations: 4.031 kB / 0.522 GB, free: 12.17 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008762/0.6252, allocations: 4.523 MB / 0.5265 GB, free: 7.559 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001754/0.627, allocations: 0.5307 MB / 0.527 GB, free: 7.008 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008246/0.6279, allocations: 36 kB / 0.527 GB, free: 6.973 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001574/0.6295, allocations: 75.88 kB / 0.5271 GB, free: 6.898 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000545/0.6301, allocations: 161.1 kB / 0.5272 GB, free: 6.742 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/0.6302, allocations: 47.98 kB / 0.5273 GB, free: 6.695 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00364/0.6339, allocations: 1.485 MB / 0.5287 GB, free: 5.191 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6339, allocations: 0 / 0.5287 GB, free: 5.191 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003792/0.6377, allocations: 0.6992 MB / 0.5294 GB, free: 4.492 MB / 462.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.0005182/0.6382, allocations: 182.8 kB / 0.5296 GB, free: 4.309 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005635/0.6439, allocations: 3.133 MB / 0.5327 GB, free: 1.102 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/0.6439, allocations: 4.875 kB / 0.5327 GB, free: 1.098 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003747/0.6477, allocations: 2.259 MB / 0.5349 GB, free: 14.75 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004015/0.6517, allocations: 0.64 MB / 0.5355 GB, free: 14.11 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01487/0.6666, allocations: 6.908 MB / 0.5422 GB, free: 7.148 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004218/0.6709, allocations: 2.686 MB / 0.5449 GB, free: 4.434 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002247/0.6732, allocations: 475.4 kB / 0.5453 GB, free: 3.965 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007455/0.6739, allocations: 143.4 kB / 0.5454 GB, free: 3.824 MB / 478.1 MB Notification: Performance of SimCode: time 1.433e-06/0.6739, allocations: 0 / 0.5454 GB, free: 3.824 MB / 478.1 MB Notification: Performance of Templates: time 0.3015/0.9754, allocations: 36.91 MB / 0.5815 GB, free: 136.1 MB / 478.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","/var/lib/jenkins/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