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.001553/0.00156, allocations: 105.8 kB / 17.93 MB, free: 5.547 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.001829/0.001829, allocations: 197.8 kB / 18.86 MB, free: 4.625 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.483/1.483, allocations: 205.1 MB / 224.7 MB, free: 12.44 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.001466/0.001465, allocations: 51.92 kB / 280.8 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1086, allocations: 46.63 MB / 327.4 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01802/0.1267, allocations: 13.52 MB / 341 MB, free: 7.195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01128/0.138, allocations: 4.436 MB / 345.4 MB, free: 2.742 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003351/0.1415, allocations: 67.69 kB / 345.5 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004079/0.1456, allocations: 0.9095 MB / 346.4 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006046/0.1517, allocations: 1.24 MB / 347.6 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003156/0.1549, allocations: 0.8538 MB / 348.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008035/0.1629, allocations: 4.873 MB / 353.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006973/0.1699, allocations: 3.644 MB / 357 MB, free: 7.055 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004361/0.1744, allocations: 2.075 MB / 359.1 MB, free: 4.973 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004978/0.1794, allocations: 2.452 MB / 361.5 MB, free: 2.512 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002191/0.1816, allocations: 0.5859 MB / 362.1 MB, free: 1.926 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003529/0.1852, allocations: 0.7966 MB / 362.9 MB, free: 1.129 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002893/0.1881, allocations: 1.34 MB / 364.2 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007889/0.196, allocations: 2.462 MB / 366.7 MB, free: 13.31 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01189/0.208, allocations: 6.575 MB / 373.3 MB, free: 6.723 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.171e-05/0.2081, allocations: 4 kB / 373.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.633e-06/0.2081, allocations: 0 / 373.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003084/0.2084, allocations: 3.938 kB / 373.3 MB, free: 6.715 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.02625/0.2347, allocations: 5.021 MB / 378.3 MB, free: 1.621 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.248e-05/0.2348, allocations: 12.03 kB / 378.3 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008495/0.2433, allocations: 0.8741 MB / 379.2 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2131/0.4564, allocations: 2.588 MB / 381.8 MB, free: 47.81 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003141/0.4568, allocations: 273.1 kB / 382 MB, free: 47.69 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001125/0.4579, allocations: 359.7 kB / 382.4 MB, free: 47.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01038/0.4683, allocations: 5.035 MB / 387.4 MB, free: 45.51 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-05/0.4684, allocations: 2.891 kB / 387.4 MB, free: 45.51 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000335/0.4688, allocations: 146.7 kB / 387.6 MB, free: 45.4 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001651/0.4689, allocations: 159.8 kB / 387.7 MB, free: 45.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007722/0.4767, allocations: 4.388 MB / 392.1 MB, free: 43.69 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02399/0.5007, allocations: 15.9 MB / 408 MB, free: 32.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005456/0.5062, allocations: 7.781 MB / 415.8 MB, free: 23.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002224/0.5084, allocations: 1.717 MB / 417.5 MB, free: 22.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007024/0.5155, allocations: 4.67 MB / 422.2 MB, free: 17.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.5156, allocations: 47.88 kB / 422.2 MB, free: 17.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=161): time 4.989e-06/0.5156, allocations: 0 / 422.2 MB, free: 17.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=164): time 0.01526/0.5309, allocations: 8.111 MB / 430.4 MB, free: 8.992 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/0.5309, allocations: 68.72 kB / 430.4 MB, free: 8.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002741/0.5337, allocations: 2.167 MB / 432.6 MB, free: 6.707 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001304/0.5338, allocations: 53.7 kB / 432.6 MB, free: 6.648 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008528/0.5347, allocations: 1.623 MB / 434.3 MB, free: 5.012 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003526/0.535, allocations: 0.5497 MB / 434.8 MB, free: 4.469 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004857/0.5355, allocations: 355.2 kB / 435.2 MB, free: 4.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.172e-05/0.5356, allocations: 305.1 kB / 435.5 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001232/0.5369, allocations: 0.9408 MB / 436.4 MB, free: 2.875 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/0.5382, allocations: 1.466 MB / 437.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003179/0.5414, allocations: 2.503 MB / 440.4 MB, free: 14.49 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.196e-05/0.5415, allocations: 4 kB / 440.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005758/0.5472, allocations: 3.359 MB / 443.7 MB, free: 11.08 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/0.5473, allocations: 12 kB / 443.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.521e-05/0.5473, allocations: 12 kB / 443.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001819/0.5491, allocations: 0.7445 MB / 444.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/0.5506, allocations: 375.4 kB / 444.9 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01194/0.5625, allocations: 11.34 MB / 456.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/0.5645, allocations: 88.05 kB / 456.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001645/0.5647, allocations: 83.98 kB / 456.4 MB, free: 13.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.002567/0.5673, allocations: 1.211 MB / 457.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004697/0.5678, allocations: 230 kB / 457.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005309/0.5731, allocations: 3.166 MB / 461 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.5731, allocations: 16 kB / 461 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.758e-05/0.5731, allocations: 12 kB / 461 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.607e-05/0.5732, allocations: 7.969 kB / 461 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01041/0.5836, allocations: 6.561 MB / 467.6 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.5836, allocations: 7.984 kB / 467.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008077/0.5844, allocations: 179.7 kB / 467.8 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002203/0.5867, allocations: 0.9153 MB / 468.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001192/0.5868, allocations: 39.98 kB / 468.7 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01567/0.6025, allocations: 16.2 MB / 484.9 MB, free: 348 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.6025, allocations: 0 / 484.9 MB, free: 348 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006822/0.6093, allocations: 4.501 MB / 489.4 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001166/0.6105, allocations: 0.5216 MB / 489.9 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003676/0.6109, allocations: 40 kB / 490 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.612, allocations: 71.94 kB / 490 MB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005056/0.6125, allocations: 165 kB / 490.2 MB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/0.6126, allocations: 51.92 kB / 490.3 MB, free: 10.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0025/0.6151, allocations: 1.481 MB / 491.7 MB, free: 9.383 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6151, allocations: 0 / 491.7 MB, free: 9.383 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002983/0.6181, allocations: 0.707 MB / 492.4 MB, free: 8.676 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.0003952/0.6185, allocations: 172.6 kB / 492.6 MB, free: 8.504 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006536/0.6251, allocations: 3.711 MB / 496.3 MB, free: 4.738 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.6251, allocations: 4 kB / 496.3 MB, free: 4.734 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003266/0.6284, allocations: 2.256 MB / 498.6 MB, free: 2.402 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002916/0.6313, allocations: 0.6365 MB / 499.2 MB, free: 1.762 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01277/0.6441, allocations: 8.382 MB / 0.4957 GB, free: 9.348 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002426/0.6466, allocations: 2.626 MB / 0.4983 GB, free: 6.695 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006901/0.6473, allocations: 155.4 kB / 0.4984 GB, free: 6.543 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.6473, allocations: 4 kB / 0.4984 GB, free: 6.539 MB / 398.1 MB Notification: Performance of Templates: time 0.2716/0.9189, allocations: 151.2 MB / 0.6461 GB, free: 49.67 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/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","../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