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.001478/0.001479, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001854/0.001854, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 59.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2588, allocations: 50.54 MB / 409.3 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02079/0.2796, allocations: 20.92 MB / 430.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01172/0.2914, allocations: 6.172 MB / 436.4 MB, free: 6.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004291/0.2957, allocations: 139.4 kB / 436.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003736/0.2994, allocations: 1.366 MB / 437.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006176/0.3057, allocations: 1.895 MB / 439.8 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002918/0.3086, allocations: 1.277 MB / 441 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006837/0.3154, allocations: 6.157 MB / 447.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005823/0.3213, allocations: 5.443 MB / 452.6 MB, free: 5.973 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003586/0.3249, allocations: 2.866 MB / 455.5 MB, free: 3.098 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004568/0.3295, allocations: 3.503 MB / 459 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00116/0.3306, allocations: 0.7812 MB / 459.8 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002071/0.3327, allocations: 1.085 MB / 460.9 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001511/0.3343, allocations: 1.956 MB / 462.8 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003852/0.3381, allocations: 3.364 MB / 466.2 MB, free: 8.379 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009394/0.3475, allocations: 10.35 MB / 476.5 MB, free: 14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3475, allocations: 0 / 476.5 MB, free: 14 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3476, allocations: 0 / 476.5 MB, free: 14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001661/0.3477, allocations: 0 / 476.5 MB, free: 14 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.01592/0.3637, allocations: 6.624 MB / 483.2 MB, free: 7.293 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.3637, allocations: 16.03 kB / 483.2 MB, free: 7.277 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004674/0.3684, allocations: 1.009 MB / 484.2 MB, free: 6.262 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00645/0.3749, allocations: 3.591 MB / 487.8 MB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002836/0.3752, allocations: 382.7 kB / 488.2 MB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008673/0.376, allocations: 0.5038 MB / 488.7 MB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01165/0.3877, allocations: 6.783 MB / 495.4 MB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001028/0.3878, allocations: 15.83 kB / 495.5 MB, free: 10.85 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004851/0.3883, allocations: 204 kB / 495.7 MB, free: 10.65 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002073/0.3885, allocations: 242.2 kB / 495.9 MB, free: 10.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01003/0.3986, allocations: 5.755 MB / 0.4899 GB, free: 4.645 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03655/0.4352, allocations: 20.92 MB / 0.5103 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008487/0.4437, allocations: 8.812 MB / 0.5189 GB, free: 5.406 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003553/0.4473, allocations: 2.198 MB / 0.5211 GB, free: 3.195 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01118/0.4585, allocations: 6.199 MB / 0.5271 GB, free: 12.79 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.961e-05/0.4586, allocations: 52.56 kB / 0.5272 GB, free: 12.73 MB / 462.1 MB Notification: Performance of pre-optimization done (n=205): time 3.657e-06/0.4586, allocations: 4 kB / 0.5272 GB, free: 12.73 MB / 462.1 MB Notification: Performance of matching and sorting (n=222): time 0.02182/0.4804, allocations: 10.43 MB / 0.5374 GB, free: 2.047 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.4805, allocations: 77.41 kB / 0.5374 GB, free: 1.961 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2599/0.7404, allocations: 2.914 MB / 0.5403 GB, free: 120.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000457/0.7409, allocations: 66.41 kB / 0.5403 GB, free: 120.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001638/0.7425, allocations: 2.365 MB / 0.5427 GB, free: 119.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005987/0.7431, allocations: 0.776 MB / 0.5434 GB, free: 118.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007678/0.7439, allocations: 0.5111 MB / 0.5439 GB, free: 118.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.314e-05/0.744, allocations: 306.6 kB / 0.5442 GB, free: 118.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001902/0.7459, allocations: 1.273 MB / 0.5455 GB, free: 117.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002003/0.7479, allocations: 2.174 MB / 0.5476 GB, free: 116.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003834/0.7517, allocations: 3.666 MB / 0.5512 GB, free: 113.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.349e-05/0.7518, allocations: 11.59 kB / 0.5512 GB, free: 113.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006486/0.7582, allocations: 4.458 MB / 0.5555 GB, free: 111.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.7583, allocations: 15.69 kB / 0.5555 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.393e-05/0.7583, allocations: 31.44 kB / 0.5556 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.7594, allocations: 0.5351 MB / 0.5561 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002244/0.7616, allocations: 0.6793 MB / 0.5568 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006686/0.7683, allocations: 10.34 MB / 0.5669 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002495/0.7708, allocations: 184.5 kB / 0.567 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002129/0.7711, allocations: 130.9 kB / 0.5672 GB, free: 102.9 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.002385/0.7735, allocations: 1.518 MB / 0.5686 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006084/0.7741, allocations: 316.7 kB / 0.5689 GB, free: 101.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005283/0.7794, allocations: 3.903 MB / 0.5727 GB, free: 98.46 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.7794, allocations: 20 kB / 0.5728 GB, free: 98.44 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.7794, allocations: 8 kB / 0.5728 GB, free: 98.43 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-05/0.7794, allocations: 12.38 kB / 0.5728 GB, free: 98.43 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/0.7902, allocations: 8.507 MB / 0.5811 GB, free: 89.79 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.7903, allocations: 4 kB / 0.5811 GB, free: 89.78 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001476/0.7917, allocations: 375.9 kB / 0.5815 GB, free: 89.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00156/0.7933, allocations: 0.7499 MB / 0.5822 GB, free: 88.65 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001295/0.7935, allocations: 64.09 kB / 0.5822 GB, free: 88.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01188/0.8053, allocations: 16.76 MB / 0.5986 GB, free: 70.75 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.8054, allocations: 4 kB / 0.5986 GB, free: 70.75 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007885/0.8133, allocations: 5.573 MB / 0.6041 GB, free: 65.04 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001397/0.8147, allocations: 0.6532 MB / 0.6047 GB, free: 64.36 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004408/0.8152, allocations: 59.98 kB / 0.6048 GB, free: 64.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001604/0.8168, allocations: 127.9 kB / 0.6049 GB, free: 64.18 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003828/0.8172, allocations: 173.6 kB / 0.605 GB, free: 64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001204/0.8173, allocations: 67.97 kB / 0.6051 GB, free: 63.94 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002356/0.8197, allocations: 1.976 MB / 0.607 GB, free: 61.96 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8197, allocations: 0 / 0.607 GB, free: 61.96 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003021/0.8227, allocations: 0.9362 MB / 0.608 GB, free: 61.03 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.0005133/0.8232, allocations: 262.3 kB / 0.6082 GB, free: 60.78 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005211/0.8284, allocations: 3.979 MB / 0.6121 GB, free: 56.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.8285, allocations: 0 / 0.6121 GB, free: 56.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00333/0.8318, allocations: 2.665 MB / 0.6147 GB, free: 53.94 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003897/0.8357, allocations: 0.869 MB / 0.6155 GB, free: 53.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01441/0.8501, allocations: 9.47 MB / 0.6248 GB, free: 43.58 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003308/0.8535, allocations: 3.305 MB / 0.628 GB, free: 40.24 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002555/0.8561, allocations: 0.758 MB / 0.6288 GB, free: 39.48 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008178/0.8569, allocations: 219.4 kB / 0.629 GB, free: 39.26 MB / 462.1 MB Notification: Performance of SimCode: time 1.252e-06/0.8569, allocations: 0 / 0.629 GB, free: 39.26 MB / 462.1 MB Notification: Performance of Templates: time 0.0693/0.9262, allocations: 45.66 MB / 0.6736 GB, free: 10.12 MB / 478.1 MB 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/jenkins/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/jenkins/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