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.00166/0.00166, allocations: 101.5 kB / 18.39 MB, free: 4.664 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.001335/0.001335, allocations: 189.1 kB / 19.33 MB, free: 3.738 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.48/1.48, allocations: 205.1 MB / 225.2 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.001373/0.001373, allocations: 55.94 kB / 329.2 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1049, allocations: 46.62 MB / 375.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.2361/0.3411, allocations: 13.68 MB / 389.5 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009664/0.3508, allocations: 4.51 MB / 394 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003287/0.3542, allocations: 73.59 kB / 394.1 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004062/0.3583, allocations: 1.042 MB / 395.1 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00587/0.3642, allocations: 1.373 MB / 396.5 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002959/0.3671, allocations: 0.9216 MB / 397.4 MB, free: 352 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008544/0.3757, allocations: 4.747 MB / 402.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00683/0.3826, allocations: 3.639 MB / 405.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005039/0.3876, allocations: 2.207 MB / 408 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005677/0.3933, allocations: 2.459 MB / 410.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002347/0.3957, allocations: 0.5887 MB / 411.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004145/0.3999, allocations: 0.8007 MB / 411.9 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002655/0.4026, allocations: 1.326 MB / 413.2 MB, free: 8.855 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006077/0.4087, allocations: 2.473 MB / 415.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01199/0.4207, allocations: 7.764 MB / 423.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.4207, allocations: 0 / 423.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4207, allocations: 3.938 kB / 423.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002848/0.421, allocations: 0 / 423.4 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.01624/0.4373, allocations: 5.029 MB / 428.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.4373, allocations: 12.02 kB / 428.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005156/0.4425, allocations: 0.8781 MB / 429.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005966/0.4485, allocations: 2.647 MB / 432 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003031/0.4488, allocations: 279.5 kB / 432.3 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001215/0.45, allocations: 363.8 kB / 432.6 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/0.4636, allocations: 5.029 MB / 437.7 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000161/0.4638, allocations: 15.91 kB / 437.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001028/0.4648, allocations: 148 kB / 437.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000205/0.4651, allocations: 159.2 kB / 438 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009913/0.475, allocations: 4.381 MB / 442.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03166/0.5067, allocations: 15.7 MB / 458.1 MB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008506/0.5153, allocations: 7.784 MB / 465.8 MB, free: 4.086 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002953/0.5183, allocations: 1.714 MB / 467.6 MB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008796/0.5271, allocations: 4.647 MB / 472.2 MB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.445e-05/0.5272, allocations: 51.81 kB / 472.3 MB, free: 13.58 MB / 398.1 MB Notification: Performance of pre-optimization done (n=161): time 3.407e-06/0.5272, allocations: 0 / 472.3 MB, free: 13.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=164): time 0.0187/0.5459, allocations: 8.123 MB / 480.4 MB, free: 5.227 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.296e-05/0.546, allocations: 68.72 kB / 480.4 MB, free: 5.148 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00463/0.5506, allocations: 2.167 MB / 482.6 MB, free: 2.945 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002133/0.5509, allocations: 53.7 kB / 482.7 MB, free: 2.887 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001351/0.5522, allocations: 1.616 MB / 484.3 MB, free: 1.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000616/0.5529, allocations: 0.5429 MB / 484.8 MB, free: 0.6992 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000684/0.5536, allocations: 359.2 kB / 485.2 MB, free: 348 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.5537, allocations: 309.1 kB / 485.5 MB, free: 36 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001694/0.5554, allocations: 0.9409 MB / 486.4 MB, free: 15.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002007/0.5574, allocations: 1.457 MB / 487.9 MB, free: 13.42 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003683/0.5611, allocations: 2.503 MB / 490.4 MB, free: 10.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.945e-05/0.5612, allocations: 7.938 kB / 490.4 MB, free: 10.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.006081/0.5672, allocations: 3.355 MB / 493.7 MB, free: 7.305 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.511e-05/0.5673, allocations: 8 kB / 493.7 MB, free: 7.297 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.588e-05/0.5673, allocations: 16.47 kB / 493.8 MB, free: 7.281 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001899/0.5693, allocations: 0.7276 MB / 494.5 MB, free: 6.539 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/0.5708, allocations: 375.4 kB / 494.9 MB, free: 6.172 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01298/0.5838, allocations: 11.37 MB / 0.4944 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002168/0.5859, allocations: 91.8 kB / 0.4944 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004031/0.5864, allocations: 76 kB / 0.4945 GB, free: 10.08 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.00309/0.5895, allocations: 1.209 MB / 0.4957 GB, free: 8.863 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008041/0.5903, allocations: 233.2 kB / 0.4959 GB, free: 8.633 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006162/0.5965, allocations: 3.16 MB / 0.499 GB, free: 5.41 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.895e-05/0.5965, allocations: 23.94 kB / 0.499 GB, free: 5.387 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.189e-05/0.5965, allocations: 8 kB / 0.499 GB, free: 5.379 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.799e-05/0.5966, allocations: 7.969 kB / 0.499 GB, free: 5.371 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0131/0.6097, allocations: 6.564 MB / 0.5055 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/0.6098, allocations: 0 / 0.5055 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009887/0.6108, allocations: 183.9 kB / 0.5056 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002508/0.6133, allocations: 0.9027 MB / 0.5065 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001862/0.6135, allocations: 39.98 kB / 0.5065 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01767/0.6312, allocations: 16.17 MB / 0.5223 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.6313, allocations: 4.156 kB / 0.5223 GB, free: 12.51 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008237/0.6395, allocations: 4.509 MB / 0.5267 GB, free: 7.91 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001697/0.6412, allocations: 0.5217 MB / 0.5273 GB, free: 7.367 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008487/0.6421, allocations: 32 kB / 0.5273 GB, free: 7.336 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001666/0.6438, allocations: 87.88 kB / 0.5274 GB, free: 7.25 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005255/0.6444, allocations: 153.1 kB / 0.5275 GB, free: 7.102 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001343/0.6445, allocations: 44.55 kB / 0.5276 GB, free: 7.059 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003387/0.6479, allocations: 1.489 MB / 0.529 GB, free: 5.551 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6479, allocations: 0 / 0.529 GB, free: 5.551 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003918/0.6518, allocations: 0.6992 MB / 0.5297 GB, free: 4.852 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.0005567/0.6524, allocations: 186.2 kB / 0.5299 GB, free: 4.664 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006088/0.6585, allocations: 3.114 MB / 0.5329 GB, free: 1.477 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/0.6586, allocations: 448 / 0.5329 GB, free: 1.477 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004077/0.6627, allocations: 2.259 MB / 0.5351 GB, free: 15.14 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00411/0.6668, allocations: 0.6443 MB / 0.5357 GB, free: 14.49 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.016/0.6828, allocations: 6.767 MB / 0.5424 GB, free: 7.668 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002951/0.6858, allocations: 2.623 MB / 0.5449 GB, free: 5.016 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000876/0.6867, allocations: 151.4 kB / 0.5451 GB, free: 4.867 MB / 478.1 MB Notification: Performance of SimCode: time 6.803e-06/0.6867, allocations: 4 kB / 0.5451 GB, free: 4.863 MB / 478.1 MB Notification: Performance of Templates: time 0.381/1.068, allocations: 151.5 MB / 0.693 GB, free: 21.82 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/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