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.001229/0.001229, allocations: 109.4 kB / 17.73 MB, free: 5.344 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.001035/0.001035, allocations: 192.2 kB / 18.66 MB, free: 4.418 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.56/1.56, allocations: 205.1 MB / 224.5 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.0013/0.0013, allocations: 48.41 kB / 328.5 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09475/0.09606, allocations: 46.61 MB / 375.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.1924/0.2885, allocations: 12.83 MB / 388 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008089/0.2966, allocations: 4.288 MB / 392.3 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001487/0.2982, allocations: 69.06 kB / 392.3 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002167/0.3004, allocations: 1.003 MB / 393.3 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003157/0.3035, allocations: 1.326 MB / 394.7 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001617/0.3052, allocations: 0.8664 MB / 395.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004761/0.3099, allocations: 4.035 MB / 399.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003859/0.3138, allocations: 3.187 MB / 402.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003425/0.3173, allocations: 1.89 MB / 404.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003518/0.3208, allocations: 2.116 MB / 406.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008459/0.3217, allocations: 0.5096 MB / 407.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001922/0.3236, allocations: 0.712 MB / 408 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001144/0.3247, allocations: 1.136 MB / 409.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0027/0.3275, allocations: 2.129 MB / 411.2 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00751/0.335, allocations: 6.74 MB / 418 MB, free: 4.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.335, allocations: 1.156 kB / 418 MB, free: 4.438 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.335, allocations: 0 / 418 MB, free: 4.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001655/0.3352, allocations: 0 / 418 MB, free: 4.438 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.01167/0.3469, allocations: 4.398 MB / 422.4 MB, free: 300 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.3469, allocations: 8.031 kB / 422.4 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004332/0.3513, allocations: 0.8163 MB / 423.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004189/0.3555, allocations: 2.319 MB / 425.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001727/0.3557, allocations: 238.6 kB / 425.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000472/0.3561, allocations: 312.3 kB / 426.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006819/0.363, allocations: 4.258 MB / 430.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-05/0.3631, allocations: 3.906 kB / 430.3 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002843/0.3633, allocations: 139.9 kB / 430.5 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001342/0.3635, allocations: 150.2 kB / 430.6 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005592/0.3691, allocations: 3.644 MB / 434.3 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01883/0.3879, allocations: 13.33 MB / 447.6 MB, free: 6.613 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006253/0.3942, allocations: 6.873 MB / 454.5 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00217/0.3964, allocations: 1.411 MB / 455.9 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00561/0.402, allocations: 3.62 MB / 459.5 MB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.4021, allocations: 47.5 kB / 459.5 MB, free: 9.668 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 4.498e-06/0.4021, allocations: 3.984 kB / 459.5 MB, free: 9.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01246/0.4146, allocations: 6.641 MB / 466.2 MB, free: 2.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.4146, allocations: 68.72 kB / 466.3 MB, free: 2.738 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002557/0.4172, allocations: 1.855 MB / 468.1 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.525e-05/0.4173, allocations: 53.69 kB / 468.2 MB, free: 0.8242 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008661/0.4182, allocations: 1.416 MB / 469.6 MB, free: 15.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003327/0.4185, allocations: 0.4929 MB / 470.1 MB, free: 14.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004569/0.419, allocations: 303.3 kB / 470.4 MB, free: 14.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.131e-05/0.4191, allocations: 305.1 kB / 470.7 MB, free: 14.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.4202, allocations: 0.7613 MB / 471.4 MB, free: 13.53 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.4216, allocations: 1.22 MB / 472.6 MB, free: 12.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00264/0.4243, allocations: 2.111 MB / 474.8 MB, free: 9.812 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.4243, allocations: 4 kB / 474.8 MB, free: 9.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004124/0.4284, allocations: 2.655 MB / 477.4 MB, free: 7.137 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.4284, allocations: 12.22 kB / 477.4 MB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.595e-05/0.4285, allocations: 23.94 kB / 477.5 MB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001273/0.4298, allocations: 497.1 kB / 477.9 MB, free: 6.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/0.4312, allocations: 395.4 kB / 478.3 MB, free: 6.223 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008228/0.4394, allocations: 6.92 MB / 485.2 MB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/0.4408, allocations: 75.95 kB / 485.3 MB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001475/0.441, allocations: 75.94 kB / 485.4 MB, free: 14.87 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.00173/0.4427, allocations: 1.048 MB / 486.4 MB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003647/0.4431, allocations: 197.6 kB / 486.6 MB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004118/0.4472, allocations: 2.5 MB / 489.1 MB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.4472, allocations: 12 kB / 489.1 MB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/0.4472, allocations: 11.94 kB / 489.2 MB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.4473, allocations: 3.984 kB / 489.2 MB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00897/0.4562, allocations: 5.537 MB / 494.7 MB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.4563, allocations: 0 / 494.7 MB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009692/0.4572, allocations: 219.7 kB / 494.9 MB, free: 5.125 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001345/0.4586, allocations: 0.4961 MB / 495.4 MB, free: 4.613 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001187/0.4587, allocations: 31.98 kB / 495.4 MB, free: 4.582 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01121/0.4699, allocations: 11.4 MB / 0.495 GB, free: 8.484 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.47, allocations: 7.969 kB / 0.495 GB, free: 8.477 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005831/0.4758, allocations: 3.558 MB / 0.4984 GB, free: 4.828 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001091/0.4769, allocations: 458.6 kB / 0.4989 GB, free: 4.359 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004712/0.4774, allocations: 35.98 kB / 0.4989 GB, free: 4.324 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.4786, allocations: 67.95 kB / 0.499 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002741/0.4788, allocations: 117 kB / 0.4991 GB, free: 4.145 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.479, allocations: 39.98 kB / 0.4991 GB, free: 4.105 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00228/0.4812, allocations: 1.29 MB / 0.5004 GB, free: 2.824 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4812, allocations: 0 / 0.5004 GB, free: 2.824 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002869/0.4841, allocations: 0.59 MB / 0.501 GB, free: 2.234 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.000383/0.4845, allocations: 158.9 kB / 0.5011 GB, free: 2.07 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004549/0.4891, allocations: 2.411 MB / 0.5035 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.4891, allocations: 4 kB / 0.5035 GB, free: 15.63 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00278/0.4919, allocations: 1.708 MB / 0.5051 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002387/0.4943, allocations: 0.5077 MB / 0.5056 GB, free: 13.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01077/0.5051, allocations: 5.938 MB / 0.5114 GB, free: 7.367 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003473/0.5086, allocations: 2.363 MB / 0.5137 GB, free: 4.973 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001742/0.5103, allocations: 420.8 kB / 0.5141 GB, free: 4.559 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005302/0.5109, allocations: 131.4 kB / 0.5143 GB, free: 4.43 MB / 446.1 MB Notification: Performance of SimCode: time 8.51e-07/0.5109, allocations: 0 / 0.5143 GB, free: 4.43 MB / 446.1 MB Notification: Performance of Templates: time 0.05545/0.5663, allocations: 31.53 MB / 0.5451 GB, free: 4.84 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