Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001151/0.001151, allocations: 197.8 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 226.6 MB / 244.3 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008759/0.0008759, allocations: 96 kB / 296.4 MB, free: 6.766 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002077/0.0002077, allocations: 8 kB / 356.2 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2463, allocations: 51.28 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.01444/0.2608, allocations: 18.43 MB / 425.9 MB, free: 9.309 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01284/0.2737, allocations: 5.753 MB / 431.7 MB, free: 3.555 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003806/0.2776, allocations: 127.4 kB / 431.8 MB, free: 3.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003416/0.281, allocations: 1.009 MB / 432.8 MB, free: 2.414 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00641/0.2875, allocations: 1.565 MB / 434.4 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003051/0.2906, allocations: 0.8478 MB / 435.2 MB, free: 15.99 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01025/0.3008, allocations: 6.21 MB / 441.4 MB, free: 9.754 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005916/0.3068, allocations: 3.632 MB / 445.1 MB, free: 6.07 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003951/0.3108, allocations: 2.004 MB / 447.1 MB, free: 4.059 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005539/0.3163, allocations: 2.646 MB / 449.7 MB, free: 1.402 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001641/0.318, allocations: 324 kB / 450 MB, free: 1.086 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002987/0.321, allocations: 0.5817 MB / 450.6 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00174/0.3228, allocations: 1.371 MB / 452 MB, free: 15.12 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002184/0.325, allocations: 1.132 MB / 453.1 MB, free: 13.98 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.3359, allocations: 8.399 MB / 461.5 MB, free: 5.562 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3359, allocations: 0 / 461.5 MB, free: 5.562 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.3359, allocations: 0 / 461.5 MB, free: 5.562 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003626/0.3363, allocations: 0 / 461.5 MB, free: 5.562 MB / 330.7 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.01643/0.3528, allocations: 5.627 MB / 467.2 MB, free: 15.85 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.3528, allocations: 12.03 kB / 467.2 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005758/0.3586, allocations: 1.012 MB / 468.2 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007582/0.3662, allocations: 3.365 MB / 471.5 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004582/0.3667, allocations: 402.2 kB / 471.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00159/0.3683, allocations: 0.4959 MB / 472.4 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01678/0.3851, allocations: 6.763 MB / 479.2 MB, free: 3.656 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001424/0.3853, allocations: 11.89 kB / 479.2 MB, free: 3.645 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005856/0.3859, allocations: 208 kB / 479.4 MB, free: 3.441 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002717/0.3862, allocations: 234.2 kB / 479.6 MB, free: 3.211 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0134/0.3996, allocations: 5.748 MB / 485.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04513/0.4448, allocations: 21.28 MB / 0.4948 GB, free: 7.664 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2302/0.675, allocations: 8.824 MB / 0.5034 GB, free: 82.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004493/0.6796, allocations: 2.23 MB / 0.5056 GB, free: 82.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009781/0.6894, allocations: 6.243 MB / 0.5117 GB, free: 79.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.6894, allocations: 56.44 kB / 0.5117 GB, free: 79.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=205): time 4.178e-06/0.6895, allocations: 0 / 0.5117 GB, free: 79.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=222): time 0.01888/0.7083, allocations: 10.55 MB / 0.522 GB, free: 74.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/0.7084, allocations: 80.2 kB / 0.5221 GB, free: 74.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003665/0.7121, allocations: 2.901 MB / 0.525 GB, free: 73.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001567/0.7123, allocations: 60.77 kB / 0.525 GB, free: 73.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001113/0.7134, allocations: 2.367 MB / 0.5273 GB, free: 71.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004619/0.7139, allocations: 0.7639 MB / 0.5281 GB, free: 70.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/0.714, allocations: 66.52 kB / 0.5281 GB, free: 70.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.7142, allocations: 417.8 kB / 0.5285 GB, free: 70.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001822/0.716, allocations: 1.275 MB / 0.5298 GB, free: 69.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002014/0.718, allocations: 2.187 MB / 0.5319 GB, free: 66.67 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002046/0.7201, allocations: 1.638 MB / 0.5335 GB, free: 65.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.7201, allocations: 12 kB / 0.5335 GB, free: 65.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006268/0.7264, allocations: 4.473 MB / 0.5379 GB, free: 60.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.119e-05/0.7264, allocations: 16 kB / 0.5379 GB, free: 60.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.392e-05/0.7265, allocations: 28 kB / 0.5379 GB, free: 60.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.7276, allocations: 0.5372 MB / 0.5385 GB, free: 59.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002183/0.7298, allocations: 0.6825 MB / 0.5391 GB, free: 59.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0063/0.7361, allocations: 9.484 MB / 0.5484 GB, free: 49.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002431/0.7385, allocations: 179.8 kB / 0.5486 GB, free: 48.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001949/0.7388, allocations: 132 kB / 0.5487 GB, free: 48.77 MB / 378.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002427/0.7412, allocations: 1.518 MB / 0.5502 GB, free: 47.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005017/0.7417, allocations: 320.1 kB / 0.5505 GB, free: 46.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005319/0.747, allocations: 3.923 MB / 0.5543 GB, free: 42.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.747, allocations: 28 kB / 0.5543 GB, free: 42.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.7471, allocations: 11.95 kB / 0.5543 GB, free: 42.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.716e-05/0.7471, allocations: 11.95 kB / 0.5543 GB, free: 42.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/0.7579, allocations: 8.517 MB / 0.5627 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.7579, allocations: 4 kB / 0.5627 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001443/0.7594, allocations: 379.4 kB / 0.563 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001595/0.761, allocations: 0.7509 MB / 0.5638 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001294/0.7611, allocations: 67.86 kB / 0.5638 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01012/0.7712, allocations: 15.35 MB / 0.5788 GB, free: 16.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.7713, allocations: 4 kB / 0.5788 GB, free: 16.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007209/0.7785, allocations: 5.594 MB / 0.5843 GB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0014/0.7799, allocations: 0.6648 MB / 0.5849 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003353/0.7802, allocations: 55.98 kB / 0.585 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/0.7816, allocations: 143.9 kB / 0.5851 GB, free: 9.969 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000325/0.782, allocations: 173.7 kB / 0.5853 GB, free: 9.797 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/0.7821, allocations: 59.98 kB / 0.5854 GB, free: 9.738 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002459/0.7846, allocations: 1.956 MB / 0.5873 GB, free: 7.785 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7846, allocations: 0 / 0.5873 GB, free: 7.785 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002894/0.7875, allocations: 0.9503 MB / 0.5882 GB, free: 6.844 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 5,(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004485/0.7879, allocations: 227.6 kB / 0.5884 GB, free: 6.629 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005203/0.7932, allocations: 3.981 MB / 0.5923 GB, free: 2.555 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/0.7932, allocations: 12.19 kB / 0.5923 GB, free: 2.543 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003375/0.7966, allocations: 2.67 MB / 0.5949 GB, free: 15.78 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003884/0.8005, allocations: 0.8284 MB / 0.5957 GB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01641/0.8169, allocations: 11.4 MB / 0.6069 GB, free: 3.484 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002907/0.8198, allocations: 3.222 MB / 0.61 GB, free: 236 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00104/0.8209, allocations: 247.4 kB / 0.6102 GB, free: 15.98 MB / 410.7 MB Notification: Performance of SimCode: time 9.02e-07/0.8209, allocations: 0 / 0.6102 GB, free: 15.98 MB / 410.7 MB Notification: Performance of Templates: time 0.6187/1.44, allocations: 250.6 MB / 0.855 GB, free: 163.3 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches