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.000723/0.0007231, allocations: 95.14 kB / 17.3 MB, free: 6.391 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.0007985/0.0007985, allocations: 172.7 kB / 18.2 MB, free: 5.551 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.407/1.407, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004852/0.0004852, allocations: 12.47 kB / 281.4 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.093/0.09349, allocations: 47.58 MB / 329 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01289/0.1064, allocations: 12.86 MB / 341.8 MB, free: 6.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007775/0.1142, allocations: 4.409 MB / 346.2 MB, free: 2.41 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001621/0.1159, allocations: 67.69 kB / 346.3 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002175/0.1181, allocations: 0.9017 MB / 347.2 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003273/0.1214, allocations: 1.255 MB / 348.5 MB, free: 180 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001918/0.1233, allocations: 0.8305 MB / 349.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005677/0.129, allocations: 5.102 MB / 354.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003646/0.1326, allocations: 2.996 MB / 357.4 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002283/0.1349, allocations: 1.521 MB / 358.9 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002353/0.1373, allocations: 2.003 MB / 360.9 MB, free: 3.617 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003727/0.1377, allocations: 240 kB / 361.2 MB, free: 3.383 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00109/0.1388, allocations: 455.7 kB / 361.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007966/0.1396, allocations: 0.9144 MB / 362.5 MB, free: 2.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002388/0.142, allocations: 2.034 MB / 364.5 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00685/0.1489, allocations: 7.253 MB / 371.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1489, allocations: 0 / 371.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1489, allocations: 0 / 371.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001481/0.149, allocations: 0 / 371.8 MB, free: 8.691 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.01082/0.1599, allocations: 4.253 MB / 376 MB, free: 4.367 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.1599, allocations: 12.03 kB / 376.1 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004647/0.1646, allocations: 0.878 MB / 376.9 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004492/0.1691, allocations: 2.581 MB / 379.5 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001847/0.1693, allocations: 275.6 kB / 379.8 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005622/0.1699, allocations: 363.8 kB / 380.1 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1732/0.343, allocations: 5.041 MB / 385.2 MB, free: 46.15 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.547e-05/0.3432, allocations: 2.75 kB / 385.2 MB, free: 46.15 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003488/0.3435, allocations: 150.5 kB / 385.3 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001778/0.3437, allocations: 165.3 kB / 385.5 MB, free: 46.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008002/0.3517, allocations: 4.404 MB / 389.9 MB, free: 44.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01962/0.3714, allocations: 16 MB / 405.9 MB, free: 33.46 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005579/0.377, allocations: 7.793 MB / 413.7 MB, free: 25.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002019/0.379, allocations: 1.73 MB / 415.4 MB, free: 24.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006131/0.3852, allocations: 4.668 MB / 420.1 MB, free: 19.3 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.3852, allocations: 47.86 kB / 420.1 MB, free: 19.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=161): time 3.517e-06/0.3852, allocations: 0 / 420.1 MB, free: 19.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=164): time 0.01494/0.4002, allocations: 8.22 MB / 428.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/0.4003, allocations: 68.72 kB / 428.4 MB, free: 10.72 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002686/0.403, allocations: 2.166 MB / 430.6 MB, free: 8.523 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001082/0.4031, allocations: 49.7 kB / 430.6 MB, free: 8.469 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007263/0.4038, allocations: 1.617 MB / 432.3 MB, free: 6.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002985/0.4041, allocations: 0.5467 MB / 432.8 MB, free: 6.297 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001994/0.4043, allocations: 165.6 kB / 433 MB, free: 6.129 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.441e-05/0.4044, allocations: 309.1 kB / 433.3 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.4056, allocations: 0.9565 MB / 434.2 MB, free: 4.867 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001402/0.407, allocations: 1.468 MB / 435.7 MB, free: 3.188 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002761/0.4098, allocations: 2.53 MB / 438.2 MB, free: 460 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.4098, allocations: 8 kB / 438.2 MB, free: 452 kB / 318.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005497/0.4153, allocations: 3.37 MB / 441.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.543e-05/0.4154, allocations: 16.03 kB / 441.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.735e-05/0.4154, allocations: 16 kB / 441.6 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001877/0.4173, allocations: 0.7326 MB / 442.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001479/0.4188, allocations: 379.4 kB / 442.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/0.4304, allocations: 10.42 MB / 453.2 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002126/0.4325, allocations: 99.95 kB / 453.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001887/0.4328, allocations: 79.98 kB / 453.3 MB, free: 0.7656 MB / 334.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.002653/0.4354, allocations: 1.209 MB / 454.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005086/0.4359, allocations: 233.2 kB / 454.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005806/0.4417, allocations: 3.183 MB / 458 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.18e-05/0.4418, allocations: 16 kB / 458 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.982e-05/0.4418, allocations: 15.98 kB / 458 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.806e-05/0.4419, allocations: 3.984 kB / 458 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01225/0.4541, allocations: 6.592 MB / 464.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.4542, allocations: 0 / 464.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008668/0.4551, allocations: 179.8 kB / 464.8 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00237/0.4574, allocations: 0.9206 MB / 465.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001285/0.4576, allocations: 43.98 kB / 465.7 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01622/0.4738, allocations: 14.83 MB / 480.6 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.4739, allocations: 4.031 kB / 480.6 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007834/0.4817, allocations: 4.54 MB / 485.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001275/0.483, allocations: 0.5178 MB / 485.6 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002882/0.4833, allocations: 39.98 kB / 485.7 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.4844, allocations: 87.88 kB / 485.7 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000468/0.4849, allocations: 166.3 kB / 485.9 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.807e-05/0.485, allocations: 43.98 kB / 485.9 MB, free: 15.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00227/0.4873, allocations: 1.489 MB / 487.4 MB, free: 13.56 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4873, allocations: 0 / 487.4 MB, free: 13.56 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002564/0.4898, allocations: 0.7031 MB / 488.1 MB, free: 12.86 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.0003903/0.4902, allocations: 159 kB / 488.3 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004916/0.4952, allocations: 3.143 MB / 491.4 MB, free: 9.484 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.4952, allocations: 0 / 491.4 MB, free: 9.484 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003417/0.4986, allocations: 2.279 MB / 493.7 MB, free: 7.129 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003501/0.5021, allocations: 0.6008 MB / 494.3 MB, free: 6.523 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01287/0.515, allocations: 8.553 MB / 0.4911 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002504/0.5176, allocations: 2.678 MB / 0.4937 GB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001865/0.5195, allocations: 483.4 kB / 0.4942 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003629/0.5198, allocations: 135.4 kB / 0.4943 GB, free: 10.61 MB / 398.1 MB Notification: Performance of SimCode: time 1.283e-06/0.5198, allocations: 0 / 0.4943 GB, free: 10.61 MB / 398.1 MB Notification: Performance of Templates: time 0.06286/0.5827, allocations: 36.28 MB / 0.5297 GB, free: 6.289 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