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.001088/0.001088, allocations: 109.4 kB / 18.34 MB, free: 4.676 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.001108/0.001108, allocations: 188.1 kB / 19.28 MB, free: 3.75 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.326/1.326, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001298/0.001298, allocations: 51.92 kB / 282.1 MB, free: 2.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08243/0.08376, allocations: 46.62 MB / 328.7 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01578/0.09958, allocations: 13.68 MB / 342.4 MB, free: 5.984 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009406/0.109, allocations: 4.509 MB / 346.9 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002275/0.1114, allocations: 75.69 kB / 347 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003112/0.1145, allocations: 1.036 MB / 348 MB, free: 352 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00458/0.1191, allocations: 1.379 MB / 349.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002655/0.1218, allocations: 0.9041 MB / 350.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006108/0.1279, allocations: 4.763 MB / 355.1 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005233/0.1332, allocations: 3.64 MB / 358.7 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003702/0.1369, allocations: 2.189 MB / 360.9 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00454/0.1415, allocations: 2.456 MB / 363.4 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001461/0.1429, allocations: 0.5898 MB / 363.9 MB, free: 316 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002359/0.1453, allocations: 0.7927 MB / 364.7 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001957/0.1473, allocations: 1.34 MB / 366.1 MB, free: 14.17 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004047/0.1514, allocations: 2.47 MB / 368.6 MB, free: 11.69 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007857/0.1592, allocations: 7.759 MB / 376.3 MB, free: 3.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1593, allocations: 3.938 kB / 376.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1593, allocations: 0 / 376.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001402/0.1594, allocations: 4 kB / 376.3 MB, free: 3.902 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.1641/0.3236, allocations: 5.025 MB / 381.3 MB, free: 48.17 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/0.3236, allocations: 10.47 kB / 381.4 MB, free: 48.17 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005635/0.3293, allocations: 0.8716 MB / 382.2 MB, free: 47.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006735/0.3361, allocations: 2.655 MB / 384.9 MB, free: 46.42 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003542/0.3364, allocations: 271 kB / 385.1 MB, free: 46.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001403/0.3378, allocations: 360.9 kB / 385.5 MB, free: 46.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01238/0.3502, allocations: 5.032 MB / 390.5 MB, free: 44.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001011/0.3504, allocations: 7.5 kB / 390.5 MB, free: 44.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003738/0.3507, allocations: 146.7 kB / 390.7 MB, free: 44 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001745/0.3509, allocations: 163.1 kB / 390.8 MB, free: 43.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008043/0.359, allocations: 4.379 MB / 395.2 MB, free: 42.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02226/0.3813, allocations: 15.72 MB / 410.9 MB, free: 29.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005338/0.3867, allocations: 7.775 MB / 418.7 MB, free: 20.6 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002021/0.3887, allocations: 1.725 MB / 420.4 MB, free: 18.88 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006715/0.3954, allocations: 4.636 MB / 425.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.3955, allocations: 51.88 kB / 425.1 MB, free: 14.15 MB / 318.1 MB Notification: Performance of pre-optimization done (n=161): time 4.839e-06/0.3955, allocations: 3.984 kB / 425.1 MB, free: 14.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=164): time 0.0147/0.4102, allocations: 8.123 MB / 433.3 MB, free: 5.793 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.116e-05/0.4103, allocations: 68.72 kB / 433.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00241/0.4127, allocations: 2.155 MB / 435.5 MB, free: 3.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000107/0.4128, allocations: 57.7 kB / 435.5 MB, free: 3.457 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006833/0.4135, allocations: 1.619 MB / 437.2 MB, free: 1.828 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002685/0.4138, allocations: 0.5514 MB / 437.7 MB, free: 1.281 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004696/0.4143, allocations: 355.2 kB / 438 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.23e-05/0.4143, allocations: 305.1 kB / 438.3 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/0.4156, allocations: 0.9447 MB / 439.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001805/0.4174, allocations: 1.457 MB / 440.7 MB, free: 14.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003354/0.4208, allocations: 2.507 MB / 443.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.4208, allocations: 4 kB / 443.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005745/0.4265, allocations: 3.348 MB / 446.6 MB, free: 7.902 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.4266, allocations: 15.94 kB / 446.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.185e-05/0.4266, allocations: 16 kB / 446.6 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0018/0.4284, allocations: 0.7303 MB / 447.4 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.4298, allocations: 371.4 kB / 447.7 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01214/0.442, allocations: 11.35 MB / 459.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002121/0.4442, allocations: 79.95 kB / 459.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001695/0.4443, allocations: 83.98 kB / 459.2 MB, free: 10.72 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.002493/0.4468, allocations: 1.219 MB / 460.5 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004744/0.4473, allocations: 225.2 kB / 460.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005488/0.4528, allocations: 3.16 MB / 463.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.4528, allocations: 16 kB / 463.9 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-05/0.4529, allocations: 12 kB / 463.9 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-05/0.4529, allocations: 8.344 kB / 463.9 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01021/0.4631, allocations: 6.565 MB / 470.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.4632, allocations: 4 kB / 470.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008254/0.464, allocations: 179.9 kB / 470.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002203/0.4662, allocations: 0.9051 MB / 471.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/0.4663, allocations: 43.92 kB / 471.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01631/0.4827, allocations: 16.18 MB / 487.7 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.4827, allocations: 4.031 kB / 487.7 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007093/0.4898, allocations: 4.505 MB / 492.3 MB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00145/0.4913, allocations: 0.5255 MB / 492.8 MB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002951/0.4916, allocations: 36 kB / 492.8 MB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009887/0.4926, allocations: 75.94 kB / 492.9 MB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004745/0.4931, allocations: 168.9 kB / 493.1 MB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.4932, allocations: 43.98 kB / 493.1 MB, free: 7.734 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002177/0.4954, allocations: 1.481 MB / 494.6 MB, free: 6.234 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4954, allocations: 0 / 494.6 MB, free: 6.234 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002697/0.4981, allocations: 0.707 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.0003725/0.4984, allocations: 169.7 kB / 495.5 MB, free: 5.355 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005045/0.5035, allocations: 3.12 MB / 498.6 MB, free: 2.172 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.5035, allocations: 0 / 498.6 MB, free: 2.172 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003384/0.5069, allocations: 2.261 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.00281/0.5097, allocations: 0.6401 MB / 0.4897 GB, free: 15.19 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0118/0.5216, allocations: 6.811 MB / 0.4964 GB, free: 8.348 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002603/0.5242, allocations: 2.673 MB / 0.499 GB, free: 5.648 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001715/0.5259, allocations: 479.4 kB / 0.4994 GB, free: 5.176 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003788/0.5263, allocations: 135.4 kB / 0.4996 GB, free: 5.043 MB / 398.1 MB Notification: Performance of SimCode: time 1.173e-06/0.5263, allocations: 4 kB / 0.4996 GB, free: 5.039 MB / 398.1 MB Notification: Performance of Templates: time 0.06339/0.5897, allocations: 36.18 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 cvode -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