Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001749/0.001749, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002302/0.002302, allocations: 206.8 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.524/2.524, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00202/0.002021, allocations: 59.91 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4852/0.4872, allocations: 50.55 MB / 410 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.03534/0.5226, allocations: 20.91 MB / 430.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02113/0.5438, allocations: 6.18 MB / 437.1 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00712/0.551, allocations: 135.5 kB / 437.2 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007267/0.5584, allocations: 1.366 MB / 438.6 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01053/0.569, allocations: 1.898 MB / 440.5 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00668/0.5757, allocations: 1.269 MB / 441.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01473/0.5905, allocations: 6.161 MB / 447.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01318/0.6037, allocations: 5.447 MB / 453.3 MB, free: 5.945 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009125/0.6129, allocations: 2.866 MB / 456.2 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009949/0.623, allocations: 3.503 MB / 459.7 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004128/0.6272, allocations: 0.7812 MB / 460.5 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0062/0.6334, allocations: 1.085 MB / 461.6 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005031/0.6385, allocations: 1.948 MB / 463.5 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01146/0.65, allocations: 3.361 MB / 466.9 MB, free: 8.359 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02398/0.6741, allocations: 10.36 MB / 477.2 MB, free: 13.97 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.422e-05/0.6742, allocations: 0 / 477.2 MB, free: 13.97 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.318e-06/0.6742, allocations: 0 / 477.2 MB, free: 13.97 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004656/0.6747, allocations: 0 / 477.2 MB, free: 13.97 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.03239/0.7071, allocations: 6.627 MB / 483.9 MB, free: 7.266 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.533e-05/0.7072, allocations: 8.031 kB / 483.9 MB, free: 7.258 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009047/0.7163, allocations: 1.017 MB / 484.9 MB, free: 6.234 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01382/0.7301, allocations: 3.591 MB / 488.5 MB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007616/0.731, allocations: 382.7 kB / 488.8 MB, free: 2.191 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003069/0.7341, allocations: 0.5038 MB / 489.3 MB, free: 1.688 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02908/0.7632, allocations: 6.783 MB / 496.1 MB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004103/0.7637, allocations: 15.83 kB / 496.1 MB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002744/0.7665, allocations: 212 kB / 496.4 MB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005923/0.7671, allocations: 238.2 kB / 496.6 MB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02489/0.792, allocations: 5.752 MB / 0.4906 GB, free: 4.617 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06645/0.8585, allocations: 20.92 MB / 0.511 GB, free: 15.18 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01486/0.8735, allocations: 8.816 MB / 0.5196 GB, free: 5.375 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006479/0.88, allocations: 2.198 MB / 0.5218 GB, free: 3.164 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02217/0.9022, allocations: 6.202 MB / 0.5278 GB, free: 12.76 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.596e-05/0.9024, allocations: 52.56 kB / 0.5279 GB, free: 12.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=205): time 7.665e-06/0.9024, allocations: 0 / 0.5279 GB, free: 12.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=222): time 0.03821/0.9407, allocations: 10.43 MB / 0.538 GB, free: 2.02 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.872e-05/0.9408, allocations: 73.41 kB / 0.5381 GB, free: 1.938 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3694/1.31, allocations: 2.916 MB / 0.541 GB, free: 120.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005362/1.311, allocations: 65.83 kB / 0.541 GB, free: 120.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002561/1.313, allocations: 2.366 MB / 0.5433 GB, free: 119.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001169/1.315, allocations: 0.7724 MB / 0.5441 GB, free: 118.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001276/1.316, allocations: 0.5119 MB / 0.5446 GB, free: 118.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.887e-05/1.316, allocations: 306.8 kB / 0.5449 GB, free: 118.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0028/1.319, allocations: 1.271 MB / 0.5461 GB, free: 117.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003148/1.322, allocations: 2.18 MB / 0.5482 GB, free: 116 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005734/1.328, allocations: 3.66 MB / 0.5518 GB, free: 113.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.629e-05/1.328, allocations: 7.75 kB / 0.5518 GB, free: 113.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01035/1.338, allocations: 4.466 MB / 0.5562 GB, free: 111.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.66e-05/1.338, allocations: 23.28 kB / 0.5562 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-05/1.338, allocations: 27.47 kB / 0.5562 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001526/1.34, allocations: 0.5293 MB / 0.5568 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003739/1.344, allocations: 0.6835 MB / 0.5574 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009539/1.353, allocations: 10.34 MB / 0.5675 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004148/1.357, allocations: 177 kB / 0.5677 GB, free: 102.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007526/1.358, allocations: 130.7 kB / 0.5678 GB, free: 102.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (345): * Single equations (assignments): 338 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004109/1.362, allocations: 1.523 MB / 0.5693 GB, free: 102 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001231/1.364, allocations: 316.9 kB / 0.5696 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009069/1.373, allocations: 3.902 MB / 0.5734 GB, free: 98.43 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-05/1.373, allocations: 20 kB / 0.5734 GB, free: 98.41 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.082e-05/1.373, allocations: 15.94 kB / 0.5734 GB, free: 98.39 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-05/1.373, allocations: 12.94 kB / 0.5735 GB, free: 98.38 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01892/1.392, allocations: 8.498 MB / 0.5818 GB, free: 89.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.977e-05/1.392, allocations: 4.469 kB / 0.5818 GB, free: 89.74 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002155/1.394, allocations: 383.4 kB / 0.5821 GB, free: 89.37 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002364/1.396, allocations: 0.7473 MB / 0.5829 GB, free: 88.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003425/1.397, allocations: 59.97 kB / 0.5829 GB, free: 88.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01537/1.412, allocations: 16.76 MB / 0.5993 GB, free: 70.71 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.002e-06/1.412, allocations: 4 kB / 0.5993 GB, free: 70.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0125/1.425, allocations: 5.57 MB / 0.6047 GB, free: 65 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002978/1.428, allocations: 0.6611 MB / 0.6054 GB, free: 64.31 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001099/1.429, allocations: 51.94 kB / 0.6054 GB, free: 64.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003354/1.432, allocations: 135.9 kB / 0.6056 GB, free: 64.13 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006745/1.433, allocations: 165.6 kB / 0.6057 GB, free: 63.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002419/1.433, allocations: 71.97 kB / 0.6058 GB, free: 63.89 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004872/1.438, allocations: 1.976 MB / 0.6077 GB, free: 61.92 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.132e-06/1.438, allocations: 0 / 0.6077 GB, free: 61.92 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006408/1.445, allocations: 0.9361 MB / 0.6086 GB, free: 60.99 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (182): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,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.001034/1.446, allocations: 257.6 kB / 0.6089 GB, free: 60.73 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009572/1.455, allocations: 3.979 MB / 0.6128 GB, free: 56.66 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/1.455, allocations: 4 kB / 0.6128 GB, free: 56.66 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006472/1.462, allocations: 2.661 MB / 0.6154 GB, free: 53.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006818/1.469, allocations: 0.8792 MB / 0.6162 GB, free: 53.05 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0259/1.495, allocations: 9.473 MB / 0.6255 GB, free: 43.53 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006189/1.501, allocations: 3.23 MB / 0.6286 GB, free: 40.27 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001981/1.503, allocations: 243.4 kB / 0.6289 GB, free: 40.03 MB / 462.1 MB Notification: Performance of SimCode: time 1.513e-06/1.503, allocations: 4 kB / 0.6289 GB, free: 40.02 MB / 462.1 MB Notification: Performance of Templates: time 0.6353/2.138, allocations: 252.5 MB / 0.8755 GB, free: 70.96 MB / 0.5294 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches