Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|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.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// 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_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|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.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// 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_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.00106, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.001073/0.001073, allocations: 188.2 kB / 18.66 MB, free: 4.391 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.416/1.416, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001217/0.001217, allocations: 51.92 kB / 328.5 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09708/0.09831, allocations: 46.61 MB / 375.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.2465/0.3448, allocations: 12.82 MB / 388 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01397/0.3589, allocations: 4.293 MB / 392.3 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00292/0.3619, allocations: 64.59 kB / 392.3 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003283/0.3652, allocations: 0.9686 MB / 393.3 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005007/0.3702, allocations: 1.289 MB / 394.6 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002579/0.3728, allocations: 0.8555 MB / 395.4 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006564/0.3794, allocations: 4.05 MB / 399.5 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0061/0.3855, allocations: 3.179 MB / 402.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004205/0.3898, allocations: 1.874 MB / 404.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00463/0.3944, allocations: 2.111 MB / 406.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002097/0.3965, allocations: 0.5094 MB / 407.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003509/0.4001, allocations: 0.7164 MB / 407.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002687/0.4028, allocations: 1.145 MB / 409 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005672/0.4085, allocations: 2.12 MB / 411.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01071/0.4192, allocations: 6.76 MB / 417.9 MB, free: 4.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.4193, allocations: 0 / 417.9 MB, free: 4.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4193, allocations: 1.688 kB / 417.9 MB, free: 4.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002621/0.4196, allocations: 0 / 417.9 MB, free: 4.477 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01637/0.4359, allocations: 4.494 MB / 422.4 MB, free: 264 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.436, allocations: 8.031 kB / 422.4 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005096/0.4411, allocations: 0.8261 MB / 423.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005181/0.4463, allocations: 2.332 MB / 425.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002353/0.4466, allocations: 230.6 kB / 425.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001175/0.4478, allocations: 328.3 kB / 426.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0107/0.4585, allocations: 4.258 MB / 430.4 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.769e-05/0.4586, allocations: 3.938 kB / 430.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005087/0.4591, allocations: 128 kB / 430.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001569/0.4593, allocations: 142.2 kB / 430.6 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007455/0.4667, allocations: 3.651 MB / 434.3 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02528/0.4921, allocations: 13.37 MB / 447.7 MB, free: 6.535 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007051/0.4991, allocations: 6.882 MB / 454.5 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002454/0.5016, allocations: 1.41 MB / 456 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006645/0.5083, allocations: 3.64 MB / 459.6 MB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.929e-05/0.5084, allocations: 47.56 kB / 459.6 MB, free: 9.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 3.065e-06/0.5084, allocations: 0 / 459.6 MB, free: 9.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01475/0.5231, allocations: 6.678 MB / 466.3 MB, free: 2.688 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.892e-05/0.5232, allocations: 64.72 kB / 466.4 MB, free: 2.609 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004157/0.5274, allocations: 1.863 MB / 468.2 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002555/0.5277, allocations: 53.7 kB / 468.3 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001351/0.529, allocations: 1.455 MB / 469.8 MB, free: 15.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005818/0.5296, allocations: 0.5151 MB / 470.3 MB, free: 14.7 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006653/0.5303, allocations: 307.4 kB / 470.6 MB, free: 14.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.5304, allocations: 305.1 kB / 470.9 MB, free: 14.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001461/0.5319, allocations: 0.7613 MB / 471.6 MB, free: 13.33 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001729/0.5336, allocations: 1.22 MB / 472.8 MB, free: 11.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003317/0.537, allocations: 2.108 MB / 475 MB, free: 9.617 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.507e-05/0.537, allocations: 8 kB / 475 MB, free: 9.609 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004965/0.542, allocations: 2.668 MB / 477.6 MB, free: 6.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.336e-05/0.542, allocations: 15.94 kB / 477.6 MB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-05/0.5421, allocations: 12 kB / 477.7 MB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001509/0.5436, allocations: 0.5013 MB / 478.2 MB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/0.5452, allocations: 387.4 kB / 478.5 MB, free: 6.016 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009066/0.5543, allocations: 6.925 MB / 485.5 MB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001768/0.5561, allocations: 83.84 kB / 485.5 MB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002685/0.5564, allocations: 79.98 kB / 485.6 MB, free: 14.64 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (180): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00202/0.5584, allocations: 1.04 MB / 486.7 MB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005941/0.559, allocations: 206.8 kB / 486.9 MB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004713/0.5637, allocations: 2.492 MB / 489.4 MB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/0.5638, allocations: 19.94 kB / 489.4 MB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-05/0.5638, allocations: 8 kB / 489.4 MB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-05/0.5638, allocations: 11.95 kB / 489.4 MB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009829/0.5736, allocations: 5.529 MB / 494.9 MB, free: 5.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.876e-06/0.5737, allocations: 4 kB / 494.9 MB, free: 5.117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.5747, allocations: 219.7 kB / 495.1 MB, free: 4.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/0.5762, allocations: 0.4999 MB / 495.6 MB, free: 4.387 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001248/0.5763, allocations: 31.98 kB / 495.7 MB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01157/0.5879, allocations: 11.41 MB / 0.4952 GB, free: 8.254 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.588, allocations: 12.03 kB / 0.4952 GB, free: 8.242 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006308/0.5943, allocations: 3.571 MB / 0.4987 GB, free: 4.582 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/0.5954, allocations: 463.7 kB / 0.4991 GB, free: 4.109 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000549/0.596, allocations: 32 kB / 0.4992 GB, free: 4.078 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.5973, allocations: 67.95 kB / 0.4992 GB, free: 4.012 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003742/0.5977, allocations: 117 kB / 0.4993 GB, free: 3.898 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.5979, allocations: 39.98 kB / 0.4994 GB, free: 3.859 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002982/0.6009, allocations: 1.286 MB / 0.5006 GB, free: 2.582 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6009, allocations: 4 kB / 0.5006 GB, free: 2.578 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003094/0.604, allocations: 0.5859 MB / 0.5012 GB, free: 1.992 MB / 430.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.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005238/0.6045, allocations: 167 kB / 0.5014 GB, free: 1.82 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004851/0.6094, allocations: 2.41 MB / 0.5037 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.6094, allocations: 0 / 0.5037 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002884/0.6123, allocations: 1.72 MB / 0.5054 GB, free: 13.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004047/0.6164, allocations: 0.519 MB / 0.5059 GB, free: 13.08 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0126/0.629, allocations: 6.025 MB / 0.5118 GB, free: 7.004 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002856/0.6319, allocations: 2.363 MB / 0.5141 GB, free: 4.609 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001591/0.6335, allocations: 412.8 kB / 0.5145 GB, free: 4.203 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005031/0.634, allocations: 127.4 kB / 0.5146 GB, free: 4.078 MB / 446.1 MB Notification: Performance of SimCode: time 8.41e-07/0.6341, allocations: 4 kB / 0.5146 GB, free: 4.074 MB / 446.1 MB Notification: Performance of Templates: time 0.05377/0.6878, allocations: 31.53 MB / 0.5454 GB, free: 4.477 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_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_Initialize/AIMC_Initialize.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches