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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001013/0.001013, allocations: 187 kB / 17.92 MB, free: 3.852 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.202/1.202, allocations: 205.1 MB / 223.7 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008877/0.0008877, allocations: 98.44 kB / 271.2 MB, free: 8.422 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007549/0.0007549, allocations: 43.94 kB / 327.2 MB, free: 292 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2013/0.2021, allocations: 46.61 MB / 373.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01173/0.2139, allocations: 13.53 MB / 387.4 MB, free: 35.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007457/0.2214, allocations: 4.454 MB / 391.8 MB, free: 31.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002362/0.2237, allocations: 71.69 kB / 391.9 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002648/0.2265, allocations: 0.9065 MB / 392.8 MB, free: 30.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003746/0.2303, allocations: 1.261 MB / 394 MB, free: 29.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001927/0.2322, allocations: 0.8525 MB / 394.9 MB, free: 28.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004936/0.2371, allocations: 5.161 MB / 400.1 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00334/0.2405, allocations: 3.017 MB / 403.1 MB, free: 20.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002277/0.2428, allocations: 1.743 MB / 404.8 MB, free: 18.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003088/0.2459, allocations: 2.272 MB / 407.1 MB, free: 16.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009821/0.2469, allocations: 340 kB / 407.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001963/0.2489, allocations: 0.5427 MB / 408 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001206/0.2501, allocations: 1.063 MB / 409 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002224/0.2523, allocations: 2.185 MB / 411.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004128/0.2564, allocations: 7.501 MB / 418.7 MB, free: 4.387 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2565, allocations: 0 / 418.7 MB, free: 4.387 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2565, allocations: 0 / 418.7 MB, free: 4.387 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.65e-05/0.2566, allocations: 0 / 418.7 MB, free: 4.387 MB / 298.7 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.00866/0.2652, allocations: 5.036 MB / 423.8 MB, free: 15.28 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.2653, allocations: 8.031 kB / 423.8 MB, free: 15.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003738/0.269, allocations: 0.8741 MB / 424.6 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004058/0.2731, allocations: 2.585 MB / 427.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001609/0.2733, allocations: 271.6 kB / 427.5 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004581/0.2737, allocations: 359.8 kB / 427.8 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007019/0.2807, allocations: 5.033 MB / 432.9 MB, free: 6.051 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.122e-05/0.2808, allocations: 4 kB / 432.9 MB, free: 6.047 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002975/0.2811, allocations: 152 kB / 433 MB, free: 5.898 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001348/0.2813, allocations: 159.2 kB / 433.2 MB, free: 5.742 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006323/0.2876, allocations: 4.381 MB / 437.6 MB, free: 1.355 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02083/0.3084, allocations: 15.9 MB / 453.5 MB, free: 1.074 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006746/0.3152, allocations: 7.795 MB / 461.3 MB, free: 8.391 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002286/0.3175, allocations: 1.71 MB / 463 MB, free: 6.684 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00711/0.3247, allocations: 4.659 MB / 467.6 MB, free: 1.934 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.679e-05/0.3247, allocations: 55.88 kB / 467.7 MB, free: 1.867 MB / 346.7 MB Notification: Performance of pre-optimization done (n=161): time 2.895e-06/0.3248, allocations: 0 / 467.7 MB, free: 1.867 MB / 346.7 MB Notification: Performance of matching and sorting (n=164): time 0.01521/0.34, allocations: 8.131 MB / 475.8 MB, free: 9.512 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.34, allocations: 68.72 kB / 475.9 MB, free: 9.434 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003175/0.3432, allocations: 2.151 MB / 478 MB, free: 7.246 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001293/0.3434, allocations: 57.7 kB / 478.1 MB, free: 7.184 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009979/0.3444, allocations: 1.608 MB / 479.7 MB, free: 5.555 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004259/0.3448, allocations: 0.5545 MB / 480.2 MB, free: 4.992 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005543/0.3454, allocations: 359.3 kB / 480.6 MB, free: 4.637 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.128e-05/0.3455, allocations: 309.1 kB / 480.9 MB, free: 4.332 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/0.3469, allocations: 0.9408 MB / 481.8 MB, free: 3.391 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001705/0.3486, allocations: 1.457 MB / 483.3 MB, free: 1.719 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003149/0.3518, allocations: 2.507 MB / 485.8 MB, free: 15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-05/0.3518, allocations: 4 kB / 485.8 MB, free: 15 MB / 378.7 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005144/0.3569, allocations: 3.343 MB / 489.1 MB, free: 11.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.357, allocations: 12 kB / 489.2 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-05/0.357, allocations: 16 kB / 489.2 MB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001683/0.3587, allocations: 0.7357 MB / 489.9 MB, free: 10.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.36, allocations: 379.4 kB / 490.3 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009956/0.37, allocations: 10.4 MB / 0.4889 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001605/0.3716, allocations: 91.84 kB / 0.489 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002295/0.3719, allocations: 80 kB / 0.4891 GB, free: 15.35 MB / 394.7 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.001957/0.3738, allocations: 1.218 MB / 0.4903 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005299/0.3744, allocations: 225.2 kB / 0.4905 GB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005288/0.3797, allocations: 3.156 MB / 0.4936 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.666e-05/0.3797, allocations: 19.98 kB / 0.4936 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.887e-05/0.3797, allocations: 12 kB / 0.4936 GB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.3798, allocations: 7.969 kB / 0.4936 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01064/0.3904, allocations: 6.576 MB / 0.5001 GB, free: 3.926 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.3904, allocations: 4 kB / 0.5001 GB, free: 3.922 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007458/0.3912, allocations: 175.7 kB / 0.5002 GB, free: 3.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002013/0.3932, allocations: 0.9054 MB / 0.5011 GB, free: 2.828 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001119/0.3933, allocations: 43.98 kB / 0.5012 GB, free: 2.785 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1653/0.5586, allocations: 14.77 MB / 0.5156 GB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.5587, allocations: 9.875 kB / 0.5156 GB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03823/0.5969, allocations: 35.07 MB / 0.5498 GB, free: 84.63 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009001/0.5978, allocations: 0.5178 MB / 0.5503 GB, free: 84.09 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003024/0.5982, allocations: 39.92 kB / 0.5504 GB, free: 84.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009997/0.5992, allocations: 76.03 kB / 0.5505 GB, free: 83.98 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004255/0.5996, allocations: 157 kB / 0.5506 GB, free: 83.83 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/0.5998, allocations: 47.98 kB / 0.5506 GB, free: 83.78 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00206/0.6018, allocations: 1.485 MB / 0.5521 GB, free: 82.28 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6018, allocations: 0 / 0.5521 GB, free: 82.28 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002902/0.6048, allocations: 0.9832 MB / 0.5531 GB, free: 81.3 MB / 394.7 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.0002826/0.605, allocations: 165.3 kB / 0.5532 GB, free: 81.13 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003797/0.6088, allocations: 3.116 MB / 0.5563 GB, free: 77.94 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.6089, allocations: 1.922 kB / 0.5563 GB, free: 77.94 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002623/0.6115, allocations: 2.265 MB / 0.5585 GB, free: 75.61 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/0.614, allocations: 0.6065 MB / 0.5591 GB, free: 75.01 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01255/0.6265, allocations: 10.67 MB / 0.5695 GB, free: 64.26 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002188/0.6287, allocations: 2.741 MB / 0.5722 GB, free: 61.49 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001852/0.6306, allocations: 483.4 kB / 0.5726 GB, free: 61.01 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003559/0.631, allocations: 139.4 kB / 0.5728 GB, free: 60.88 MB / 394.7 MB Notification: Performance of SimCode: time 1.944e-06/0.631, allocations: 0 / 0.5728 GB, free: 60.88 MB / 394.7 MB Notification: Performance of Templates: time 0.05569/0.6867, allocations: 45.04 MB / 0.6167 GB, free: 15.81 MB / 394.7 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@2/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