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.001428/0.001428, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001669/0.00167, allocations: 204.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 59.91 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2689, allocations: 50.54 MB / 409.3 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02226/0.2912, allocations: 20.92 MB / 430.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01482/0.3061, allocations: 6.172 MB / 436.4 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005325/0.3114, allocations: 139.4 kB / 436.5 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005211/0.3167, allocations: 1.417 MB / 437.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007975/0.3247, allocations: 1.98 MB / 439.9 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004197/0.3289, allocations: 1.266 MB / 441.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00928/0.3382, allocations: 6.172 MB / 447.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009606/0.3478, allocations: 5.432 MB / 452.8 MB, free: 5.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006803/0.3547, allocations: 2.862 MB / 455.6 MB, free: 2.949 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008252/0.363, allocations: 3.511 MB / 459.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003715/0.3667, allocations: 0.7812 MB / 459.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004972/0.3717, allocations: 1.085 MB / 461 MB, free: 13.56 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003632/0.3754, allocations: 1.948 MB / 463 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007726/0.3831, allocations: 3.364 MB / 466.3 MB, free: 8.227 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01406/0.3972, allocations: 10.36 MB / 476.7 MB, free: 13.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.3972, allocations: 0 / 476.7 MB, free: 13.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3973, allocations: 3.938 kB / 476.7 MB, free: 13.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003796/0.3976, allocations: 4 kB / 476.7 MB, free: 13.83 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.01898/0.4166, allocations: 6.62 MB / 483.3 MB, free: 7.129 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.4167, allocations: 8.031 kB / 483.3 MB, free: 7.121 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005666/0.4224, allocations: 1.013 MB / 484.3 MB, free: 6.102 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00805/0.4304, allocations: 3.583 MB / 487.9 MB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004118/0.4309, allocations: 390.6 kB / 488.3 MB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001675/0.4326, allocations: 0.5077 MB / 488.8 MB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01502/0.4476, allocations: 6.775 MB / 495.6 MB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001167/0.4478, allocations: 15.84 kB / 495.6 MB, free: 10.69 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004712/0.4482, allocations: 212 kB / 495.8 MB, free: 10.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002233/0.4485, allocations: 238.2 kB / 496 MB, free: 10.25 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009872/0.4583, allocations: 5.755 MB / 0.49 GB, free: 4.484 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03238/0.4907, allocations: 20.92 MB / 0.5104 GB, free: 15.05 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008565/0.4993, allocations: 8.817 MB / 0.5191 GB, free: 5.242 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00378/0.5032, allocations: 2.194 MB / 0.5212 GB, free: 3.035 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01108/0.5143, allocations: 6.199 MB / 0.5273 GB, free: 12.64 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.519e-05/0.5143, allocations: 56.56 kB / 0.5273 GB, free: 12.57 MB / 462.1 MB Notification: Performance of pre-optimization done (n=205): time 3.136e-06/0.5143, allocations: 0 / 0.5273 GB, free: 12.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=222): time 0.02026/0.5346, allocations: 10.43 MB / 0.5375 GB, free: 1.891 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.5347, allocations: 73.41 kB / 0.5376 GB, free: 1.809 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2003/0.735, allocations: 2.921 MB / 0.5404 GB, free: 120.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000451/0.7355, allocations: 60.39 kB / 0.5405 GB, free: 120.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001518/0.737, allocations: 2.372 MB / 0.5428 GB, free: 119.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005286/0.7375, allocations: 0.7642 MB / 0.5435 GB, free: 118.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007344/0.7383, allocations: 0.5147 MB / 0.544 GB, free: 118.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.997e-05/0.7383, allocations: 309.6 kB / 0.5443 GB, free: 118.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001869/0.7402, allocations: 1.268 MB / 0.5456 GB, free: 117.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00193/0.7421, allocations: 2.177 MB / 0.5477 GB, free: 116.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003678/0.7458, allocations: 3.67 MB / 0.5513 GB, free: 113.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.254e-05/0.7458, allocations: 7.75 kB / 0.5513 GB, free: 113.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006215/0.7521, allocations: 4.468 MB / 0.5557 GB, free: 111.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/0.7521, allocations: 16.91 kB / 0.5557 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.686e-05/0.7522, allocations: 28 kB / 0.5557 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/0.7532, allocations: 0.5332 MB / 0.5562 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002209/0.7554, allocations: 0.6779 MB / 0.5569 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006382/0.7618, allocations: 10.35 MB / 0.567 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002238/0.7641, allocations: 183.1 kB / 0.5672 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002008/0.7643, allocations: 124 kB / 0.5673 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.002121/0.7664, allocations: 1.525 MB / 0.5688 GB, free: 102 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005153/0.7669, allocations: 319.9 kB / 0.5691 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005252/0.7722, allocations: 3.894 MB / 0.5729 GB, free: 98.28 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.7722, allocations: 31.98 kB / 0.5729 GB, free: 98.25 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.7722, allocations: 8 kB / 0.5729 GB, free: 98.24 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.635e-05/0.7723, allocations: 11.95 kB / 0.5729 GB, free: 98.23 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/0.7825, allocations: 8.502 MB / 0.5812 GB, free: 89.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.7826, allocations: 4.469 kB / 0.5812 GB, free: 89.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/0.784, allocations: 383.4 kB / 0.5816 GB, free: 89.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001568/0.7856, allocations: 0.7351 MB / 0.5823 GB, free: 88.46 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001436/0.7858, allocations: 59.97 kB / 0.5824 GB, free: 88.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01023/0.796, allocations: 16.76 MB / 0.5987 GB, free: 70.56 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.796, allocations: 4 kB / 0.5987 GB, free: 70.56 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006854/0.8029, allocations: 5.581 MB / 0.6042 GB, free: 64.84 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001231/0.8042, allocations: 0.6454 MB / 0.6048 GB, free: 64.17 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004033/0.8046, allocations: 56.11 kB / 0.6049 GB, free: 64.12 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/0.8059, allocations: 139.9 kB / 0.605 GB, free: 63.98 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003278/0.8062, allocations: 173.6 kB / 0.6052 GB, free: 63.81 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.8064, allocations: 67.98 kB / 0.6052 GB, free: 63.74 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002218/0.8086, allocations: 1.972 MB / 0.6072 GB, free: 61.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.8086, allocations: 4 kB / 0.6072 GB, free: 61.77 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002787/0.8114, allocations: 0.94 MB / 0.6081 GB, free: 60.83 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.0004562/0.8119, allocations: 250.3 kB / 0.6083 GB, free: 60.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00478/0.8167, allocations: 3.986 MB / 0.6122 GB, free: 56.51 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.8167, allocations: 0 / 0.6122 GB, free: 56.51 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0032/0.8199, allocations: 2.67 MB / 0.6148 GB, free: 53.75 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003493/0.8234, allocations: 0.8575 MB / 0.6157 GB, free: 52.91 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01201/0.8354, allocations: 9.48 MB / 0.6249 GB, free: 43.39 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002166/0.8376, allocations: 3.305 MB / 0.6281 GB, free: 40.05 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002021/0.8397, allocations: 0.758 MB / 0.6289 GB, free: 39.29 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005361/0.8402, allocations: 223.4 kB / 0.6291 GB, free: 39.07 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.8402, allocations: 0 / 0.6291 GB, free: 39.07 MB / 462.1 MB Notification: Performance of Templates: time 0.06739/0.9076, allocations: 45.64 MB / 0.6737 GB, free: 9.938 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