Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,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.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,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.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001871/0.001871, allocations: 181.3 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.182/3.182, allocations: 205.4 MB / 223.6 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001266/0.001266, allocations: 90.34 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007612/0.0007613, allocations: 8 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5059/0.5067, allocations: 47.58 MB / 375.7 MB, free: 45.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2373/0.7441, allocations: 109.9 MB / 485.7 MB, free: 2.625 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004302/0.7446, allocations: 91.95 kB / 485.8 MB, free: 2.535 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6644/1.409, allocations: 80.36 MB / 0.5529 GB, free: 63.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.386e-06/1.409, allocations: 192 / 0.5529 GB, free: 63.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006861/1.41, allocations: 75.94 kB / 0.5529 GB, free: 63.46 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01872/1.429, allocations: 3.486 MB / 0.5563 GB, free: 59.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001018/1.429, allocations: 8.031 kB / 0.5563 GB, free: 59.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007537/1.436, allocations: 0.7383 MB / 0.5571 GB, free: 59.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01108/1.448, allocations: 2.677 MB / 0.5597 GB, free: 56.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004917/1.448, allocations: 250.8 kB / 0.5599 GB, free: 56.17 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002285/1.45, allocations: 324.2 kB / 0.5602 GB, free: 55.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01546/1.466, allocations: 4.228 MB / 0.5643 GB, free: 51.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001484/1.466, allocations: 15.83 kB / 0.5644 GB, free: 51.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006824/1.467, allocations: 140 kB / 0.5645 GB, free: 51.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001726/1.467, allocations: 138.5 kB / 0.5646 GB, free: 51.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01028/1.477, allocations: 3.426 MB / 0.568 GB, free: 47.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03658/1.514, allocations: 13.93 MB / 0.5816 GB, free: 33.49 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009708/1.524, allocations: 6.671 MB / 0.5881 GB, free: 25.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003987/1.528, allocations: 1.4 MB / 0.5895 GB, free: 24.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01438/1.542, allocations: 3.827 MB / 0.5932 GB, free: 20.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.025e-05/1.542, allocations: 47.88 kB / 0.5932 GB, free: 20.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=146): time 6.702e-06/1.543, allocations: 0 / 0.5932 GB, free: 20.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=149): time 0.01866/1.561, allocations: 6.136 MB / 0.5992 GB, free: 14.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.35e-05/1.561, allocations: 68.72 kB / 0.5993 GB, free: 14.17 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004265/1.566, allocations: 1.724 MB / 0.601 GB, free: 12.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004279/1.566, allocations: 49.7 kB / 0.601 GB, free: 12.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001449/1.568, allocations: 1.415 MB / 0.6024 GB, free: 10.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001298/1.569, allocations: 0.5045 MB / 0.6029 GB, free: 10.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002411/1.569, allocations: 36 kB / 0.6029 GB, free: 10.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004546/1.57, allocations: 385.9 kB / 0.6033 GB, free: 10.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002391/1.572, allocations: 0.6989 MB / 0.604 GB, free: 9.332 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002123/1.574, allocations: 1.175 MB / 0.6051 GB, free: 7.957 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004679/1.579, allocations: 2 MB / 0.6071 GB, free: 5.762 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.901e-05/1.579, allocations: 11.94 kB / 0.6071 GB, free: 5.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.007301/1.586, allocations: 2.585 MB / 0.6096 GB, free: 3.117 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.064e-05/1.586, allocations: 12 kB / 0.6096 GB, free: 3.105 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.43e-05/1.586, allocations: 12 kB / 0.6096 GB, free: 3.094 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001491/1.588, allocations: 380.2 kB / 0.61 GB, free: 2.707 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002343/1.59, allocations: 391.4 kB / 0.6104 GB, free: 2.324 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01359/1.604, allocations: 7.878 MB / 0.6181 GB, free: 9.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003465/1.607, allocations: 79.86 kB / 0.6182 GB, free: 9.832 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006103/1.608, allocations: 76.16 kB / 0.6182 GB, free: 9.758 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 189 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 7,(3,100.0%) 9,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005371/1.614, allocations: 1.02 MB / 0.6192 GB, free: 8.727 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001384/1.615, allocations: 189.7 kB / 0.6194 GB, free: 8.539 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009497/1.624, allocations: 2.407 MB / 0.6218 GB, free: 6.066 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.255e-05/1.625, allocations: 12 kB / 0.6218 GB, free: 6.055 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.255e-05/1.625, allocations: 11.94 kB / 0.6218 GB, free: 6.043 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.494e-05/1.625, allocations: 7.969 kB / 0.6218 GB, free: 6.035 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02105/1.646, allocations: 5.266 MB / 0.6269 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.969e-05/1.646, allocations: 0 / 0.6269 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001519/1.647, allocations: 191.8 kB / 0.6271 GB, free: 452 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002518/1.65, allocations: 0.5555 MB / 0.6277 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000321/1.65, allocations: 39.98 kB / 0.6277 GB, free: 15.83 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02083/1.671, allocations: 12.27 MB / 0.6397 GB, free: 2.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-05/1.671, allocations: 4 kB / 0.6397 GB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3519/2.023, allocations: 3.4 MB / 0.643 GB, free: 91.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001113/2.024, allocations: 437.3 kB / 0.6434 GB, free: 91.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002415/2.025, allocations: 35.19 kB / 0.6435 GB, free: 91.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008333/2.025, allocations: 72.42 kB / 0.6435 GB, free: 91.07 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002735/2.026, allocations: 125.2 kB / 0.6436 GB, free: 91.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.993e-05/2.026, allocations: 45.88 kB / 0.6437 GB, free: 91.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001516/2.027, allocations: 1.173 MB / 0.6448 GB, free: 90.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.01e-07/2.027, allocations: 0 / 0.6448 GB, free: 90.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002052/2.029, allocations: 0.6245 MB / 0.6454 GB, free: 90.96 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 7,(3,100.0%) 9,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000681/2.03, allocations: 362.1 kB / 0.6458 GB, free: 90.87 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004821/2.035, allocations: 2.439 MB / 0.6482 GB, free: 90.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/2.035, allocations: 1.594 kB / 0.6482 GB, free: 90.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003307/2.038, allocations: 1.822 MB / 0.6499 GB, free: 89.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00426/2.043, allocations: 0.5134 MB / 0.6504 GB, free: 89.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0143/2.057, allocations: 7.177 MB / 0.6575 GB, free: 86.55 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002868/2.06, allocations: 2.268 MB / 0.6597 GB, free: 85.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008584/2.061, allocations: 136.7 kB / 0.6598 GB, free: 85.78 MB / 410.7 MB Notification: Performance of SimCode: time 8.92e-07/2.061, allocations: 0 / 0.6598 GB, free: 85.78 MB / 410.7 MB Notification: Performance of Templates: time 0.1593/2.22, allocations: 129.5 MB / 0.7863 GB, free: 4.055 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_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_Steinmetz/AIMC_Steinmetz.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches