Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008258/0.0008259, allocations: 100.9 kB / 17.01 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008362/0.0008362, allocations: 198.9 kB / 17.91 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.7 MB / 246.4 MB, free: 9.805 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002106/0.0002107, allocations: 4 kB / 307.1 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08601/0.08624, allocations: 51.52 MB / 358.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.1893/0.2755, allocations: 19.77 MB / 378.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01466/0.2902, allocations: 6.196 MB / 384.6 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004897/0.2951, allocations: 127.7 kB / 384.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004762/0.2999, allocations: 1.121 MB / 385.9 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007899/0.3079, allocations: 1.695 MB / 387.6 MB, free: 6.832 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00405/0.3119, allocations: 0.8921 MB / 388.4 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01004/0.322, allocations: 6.596 MB / 395 MB, free: 3.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006505/0.3285, allocations: 3.764 MB / 398.8 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003665/0.3322, allocations: 2.136 MB / 400.9 MB, free: 200 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00478/0.337, allocations: 2.808 MB / 403.8 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001197/0.3382, allocations: 338.2 kB / 404.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003201/0.3414, allocations: 0.5941 MB / 404.7 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002072/0.3435, allocations: 1.432 MB / 406.1 MB, free: 13 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002325/0.3458, allocations: 1.198 MB / 407.3 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00919/0.355, allocations: 8.806 MB / 416.1 MB, free: 2.965 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3551, allocations: 0 / 416.1 MB, free: 2.965 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.3551, allocations: 0 / 416.1 MB, free: 2.965 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002999/0.3554, allocations: 4 kB / 416.1 MB, free: 2.961 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01428/0.3697, allocations: 5.91 MB / 422 MB, free: 12.97 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.3697, allocations: 8.031 kB / 422 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005427/0.3751, allocations: 1.082 MB / 423.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007412/0.3826, allocations: 3.517 MB / 426.6 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004476/0.383, allocations: 418.7 kB / 427 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00134/0.3844, allocations: 0.5349 MB / 427.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01369/0.3981, allocations: 7.024 MB / 434.6 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001092/0.3982, allocations: 7.938 kB / 434.6 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004701/0.3987, allocations: 231.9 kB / 434.8 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002398/0.399, allocations: 258.6 kB / 435.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01018/0.4091, allocations: 5.94 MB / 441 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0337/0.4429, allocations: 22.71 MB / 463.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008002/0.4509, allocations: 8.56 MB / 472.3 MB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004046/0.455, allocations: 2.304 MB / 474.6 MB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01132/0.4663, allocations: 6.473 MB / 481.1 MB, free: 0 / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.92e-05/0.4664, allocations: 64.55 kB / 481.1 MB, free: 15.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=220): time 3.997e-06/0.4664, allocations: 4 kB / 481.1 MB, free: 15.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=240): time 0.02256/0.489, allocations: 11.23 MB / 492.4 MB, free: 4.465 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.757e-05/0.4891, allocations: 73.41 kB / 492.4 MB, free: 4.379 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007098/0.4962, allocations: 3.153 MB / 495.6 MB, free: 1.227 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000309/0.4965, allocations: 61.7 kB / 495.7 MB, free: 1.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002133/0.4987, allocations: 2.518 MB / 498.2 MB, free: 14.61 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000931/0.4996, allocations: 0.8242 MB / 499 MB, free: 13.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002962/0.4999, allocations: 64 kB / 499.1 MB, free: 13.71 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003319/0.5003, allocations: 436.6 kB / 499.5 MB, free: 13.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002626/0.5029, allocations: 1.334 MB / 0.4891 GB, free: 11.94 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003173/0.5061, allocations: 2.35 MB / 0.4914 GB, free: 9.145 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003052/0.5092, allocations: 1.732 MB / 0.4931 GB, free: 7.391 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.897e-05/0.5092, allocations: 8 kB / 0.4931 GB, free: 7.383 MB / 414.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008552/0.5178, allocations: 4.733 MB / 0.4977 GB, free: 2.539 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.75e-05/0.5178, allocations: 20 kB / 0.4977 GB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.615e-05/0.5179, allocations: 32 kB / 0.4977 GB, free: 2.488 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001281/0.5192, allocations: 0.5457 MB / 0.4983 GB, free: 1.922 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00285/0.5221, allocations: 0.7527 MB / 0.499 GB, free: 1.168 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009316/0.5314, allocations: 9.577 MB / 0.5084 GB, free: 6.922 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00271/0.5341, allocations: 199.6 kB / 0.5086 GB, free: 6.727 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004243/0.5346, allocations: 136 kB / 0.5087 GB, free: 6.594 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (377): * Single equations (assignments): 370 * 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%) 12,(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.003057/0.5376, allocations: 1.574 MB / 0.5102 GB, free: 5.008 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007573/0.5384, allocations: 351.7 kB / 0.5106 GB, free: 4.66 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007194/0.5456, allocations: 4.101 MB / 0.5146 GB, free: 476 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.072e-05/0.5457, allocations: 24 kB / 0.5146 GB, free: 452 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.392e-05/0.5457, allocations: 8 kB / 0.5146 GB, free: 444 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-05/0.5457, allocations: 11.95 kB / 0.5146 GB, free: 432 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01687/0.5626, allocations: 9.022 MB / 0.5234 GB, free: 7.199 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/0.5627, allocations: 4.062 kB / 0.5234 GB, free: 7.195 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001811/0.5645, allocations: 415.4 kB / 0.5238 GB, free: 6.789 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001915/0.5664, allocations: 0.7627 MB / 0.5246 GB, free: 6.004 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002165/0.5666, allocations: 59.98 kB / 0.5246 GB, free: 5.945 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1858/0.7524, allocations: 15.47 MB / 0.5397 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.7525, allocations: 5.469 kB / 0.5397 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008802/0.7613, allocations: 5.883 MB / 0.5455 GB, free: 126.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/0.7628, allocations: 0.7066 MB / 0.5462 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004134/0.7632, allocations: 57.73 kB / 0.5462 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001442/0.7647, allocations: 153.9 kB / 0.5464 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003894/0.7651, allocations: 177.2 kB / 0.5465 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001532/0.7652, allocations: 75.45 kB / 0.5466 GB, free: 126 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003239/0.7685, allocations: 2.113 MB / 0.5487 GB, free: 125.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7685, allocations: 0 / 0.5487 GB, free: 125.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003311/0.7718, allocations: 1.002 MB / 0.5497 GB, free: 125.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],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 (198): * Single equations (assignments): 190 * 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%) 12,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004498/0.7723, allocations: 230.1 kB / 0.5499 GB, free: 125 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005965/0.7782, allocations: 4.159 MB / 0.5539 GB, free: 123.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.7783, allocations: 1.156 kB / 0.5539 GB, free: 123.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003421/0.7817, allocations: 2.779 MB / 0.5567 GB, free: 121.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004572/0.7863, allocations: 0.928 MB / 0.5576 GB, free: 121.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01594/0.8022, allocations: 11.97 MB / 0.5692 GB, free: 114.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002478/0.8047, allocations: 3.416 MB / 0.5726 GB, free: 113.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002674/0.8074, allocations: 0.81 MB / 0.5734 GB, free: 113 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006091/0.8081, allocations: 235.3 kB / 0.5736 GB, free: 112.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.904e-06/0.8081, allocations: 3.938 kB / 0.5736 GB, free: 112.9 MB / 446.1 MB Notification: Performance of Templates: time 0.06955/0.8776, allocations: 47.93 MB / 0.6204 GB, free: 66.72 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches