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.001459/0.001459, allocations: 110 kB / 18.4 MB, free: 4.699 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.001471/0.001471, allocations: 190.3 kB / 19.33 MB, free: 3.781 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.375/1.375, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001306/0.001306, allocations: 51.92 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08857/0.08988, allocations: 46.61 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.2007/0.2906, allocations: 12.83 MB / 388.7 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007928/0.2986, allocations: 4.287 MB / 392.9 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002386/0.3011, allocations: 68.78 kB / 393 MB, free: 3.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003074/0.3042, allocations: 0.9659 MB / 394 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004546/0.3087, allocations: 1.291 MB / 395.3 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002477/0.3112, allocations: 0.8597 MB / 396.1 MB, free: 1.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006526/0.3178, allocations: 4.034 MB / 400.2 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005707/0.3235, allocations: 3.191 MB / 403.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004075/0.3276, allocations: 1.885 MB / 405.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004824/0.3325, allocations: 2.123 MB / 407.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001901/0.3344, allocations: 0.5095 MB / 407.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003587/0.338, allocations: 0.7124 MB / 408.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002306/0.3403, allocations: 1.138 MB / 409.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005701/0.346, allocations: 2.127 MB / 411.8 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01059/0.3566, allocations: 6.739 MB / 418.6 MB, free: 4.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.3567, allocations: 0 / 418.6 MB, free: 4.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.3567, allocations: 5.312 kB / 418.6 MB, free: 4.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002483/0.357, allocations: 0 / 418.6 MB, free: 4.484 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.01545/0.3724, allocations: 4.395 MB / 423 MB, free: 380 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.3725, allocations: 8.031 kB / 423 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005381/0.3779, allocations: 0.8202 MB / 423.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00548/0.3834, allocations: 2.311 MB / 426.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002651/0.3837, allocations: 242.6 kB / 426.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001193/0.3849, allocations: 316.3 kB / 426.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01103/0.396, allocations: 4.25 MB / 430.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001349/0.3961, allocations: 11.91 kB / 430.9 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008748/0.397, allocations: 124 kB / 431.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001647/0.3972, allocations: 150.2 kB / 431.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008212/0.4054, allocations: 3.655 MB / 434.9 MB, free: 4.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02563/0.4311, allocations: 13.34 MB / 448.2 MB, free: 6.688 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006949/0.4381, allocations: 6.854 MB / 455 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002642/0.4408, allocations: 1.411 MB / 456.5 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007122/0.448, allocations: 3.631 MB / 460.1 MB, free: 9.805 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.503e-05/0.448, allocations: 47.56 kB / 460.1 MB, free: 9.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 5.069e-06/0.4481, allocations: 4 kB / 460.1 MB, free: 9.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01488/0.4629, allocations: 6.634 MB / 466.8 MB, free: 2.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/0.463, allocations: 68.66 kB / 466.8 MB, free: 2.828 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004193/0.4672, allocations: 1.859 MB / 468.7 MB, free: 0.9688 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002889/0.4676, allocations: 49.7 kB / 468.7 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001351/0.4689, allocations: 1.416 MB / 470.2 MB, free: 15.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005712/0.4695, allocations: 0.489 MB / 470.6 MB, free: 14.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006033/0.4701, allocations: 307.3 kB / 470.9 MB, free: 14.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.949e-05/0.4702, allocations: 309.1 kB / 471.3 MB, free: 14.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001331/0.4716, allocations: 0.7612 MB / 472 MB, free: 13.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00164/0.4732, allocations: 1.22 MB / 473.2 MB, free: 12.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003063/0.4763, allocations: 2.111 MB / 475.3 MB, free: 9.898 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.602e-05/0.4763, allocations: 4 kB / 475.3 MB, free: 9.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005087/0.4814, allocations: 2.655 MB / 478 MB, free: 7.223 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.811e-05/0.4815, allocations: 16.22 kB / 478 MB, free: 7.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.83e-05/0.4815, allocations: 16 kB / 478 MB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001434/0.483, allocations: 0.4932 MB / 478.5 MB, free: 6.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/0.4845, allocations: 391.5 kB / 478.9 MB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008824/0.4934, allocations: 6.928 MB / 485.8 MB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/0.4952, allocations: 71.97 kB / 485.9 MB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002852/0.4955, allocations: 71.92 kB / 486 MB, free: 14.95 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.002181/0.4977, allocations: 1.048 MB / 487 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005942/0.4983, allocations: 197.5 kB / 487.2 MB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00469/0.503, allocations: 2.496 MB / 489.7 MB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.519e-05/0.5031, allocations: 16 kB / 489.7 MB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.147e-05/0.5031, allocations: 7.938 kB / 489.7 MB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.72e-05/0.5031, allocations: 7.969 kB / 489.7 MB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.5138, allocations: 5.537 MB / 495.3 MB, free: 5.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/0.5139, allocations: 0 / 495.3 MB, free: 5.426 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.515, allocations: 215.7 kB / 495.5 MB, free: 5.215 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00137/0.5164, allocations: 0.5039 MB / 496 MB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001438/0.5165, allocations: 39.98 kB / 496 MB, free: 4.656 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01125/0.5278, allocations: 11.41 MB / 0.4955 GB, free: 8.559 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.5279, allocations: 0 / 0.4955 GB, free: 8.559 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006132/0.534, allocations: 3.566 MB / 0.499 GB, free: 4.902 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001296/0.5353, allocations: 462.6 kB / 0.4995 GB, free: 4.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006505/0.536, allocations: 28 kB / 0.4995 GB, free: 4.402 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001419/0.5374, allocations: 67.94 kB / 0.4996 GB, free: 4.336 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003569/0.5378, allocations: 117 kB / 0.4997 GB, free: 4.223 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/0.538, allocations: 43.98 kB / 0.4997 GB, free: 4.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002705/0.5407, allocations: 1.282 MB / 0.501 GB, free: 2.906 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5407, allocations: 0 / 0.501 GB, free: 2.906 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002939/0.5436, allocations: 0.5864 MB / 0.5015 GB, free: 2.32 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.0004419/0.5441, allocations: 162.9 kB / 0.5017 GB, free: 2.152 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004472/0.5486, allocations: 2.399 MB / 0.504 GB, free: 15.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.5486, allocations: 3.938 kB / 0.504 GB, free: 15.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002697/0.5513, allocations: 1.727 MB / 0.5057 GB, free: 13.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003448/0.5548, allocations: 0.5035 MB / 0.5062 GB, free: 13.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01207/0.5669, allocations: 5.901 MB / 0.512 GB, free: 7.477 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002789/0.5697, allocations: 2.308 MB / 0.5142 GB, free: 5.137 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007199/0.5705, allocations: 151.3 kB / 0.5144 GB, free: 4.988 MB / 446.1 MB Notification: Performance of SimCode: time 1.452e-06/0.5705, allocations: 4 kB / 0.5144 GB, free: 4.984 MB / 446.1 MB Notification: Performance of Templates: time 0.2961/0.8666, allocations: 97.66 MB / 0.6098 GB, free: 112.1 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/jenkins1/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/jenkins1/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