Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002465/0.002465, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.116/2.116, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001117, allocations: 88.88 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.534e-05/2.551e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3378, allocations: 47.58 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2102/0.5481, allocations: 129.7 MB / 492.1 MB, free: 4.512 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00032/0.5484, allocations: 88.7 kB / 492.1 MB, free: 4.426 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7653/1.314, allocations: 122.5 MB / 0.6003 GB, free: 43.34 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.104e-06/1.314, allocations: 0 / 0.6003 GB, free: 43.34 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0006163/1.314, allocations: 143.8 kB / 0.6004 GB, free: 43.2 MB / 395.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.02082/1.335, allocations: 5.101 MB / 0.6054 GB, free: 38.04 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/1.335, allocations: 12.03 kB / 0.6054 GB, free: 38.03 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007785/1.343, allocations: 1.008 MB / 0.6064 GB, free: 37.02 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01757/1.361, allocations: 4.593 MB / 0.6109 GB, free: 32.39 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003745/1.361, allocations: 172 kB / 0.611 GB, free: 32.22 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002206/1.363, allocations: 327.8 kB / 0.6114 GB, free: 31.9 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01664/1.38, allocations: 5.098 MB / 0.6163 GB, free: 26.8 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02157/1.402, allocations: 6.045 MB / 0.6222 GB, free: 20.55 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003765/1.402, allocations: 19.89 kB / 0.6223 GB, free: 20.54 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001853/1.404, allocations: 8 kB / 0.6223 GB, free: 20.53 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003395/1.404, allocations: 250.6 kB / 0.6225 GB, free: 20.28 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05817/1.463, allocations: 21.5 MB / 0.6435 GB, free: 14.22 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01445/1.477, allocations: 8.195 MB / 0.6515 GB, free: 5.141 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005958/1.483, allocations: 2.025 MB / 0.6535 GB, free: 3.113 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3328/1.816, allocations: 6.153 MB / 0.6595 GB, free: 64.69 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.265e-05/1.816, allocations: 58.16 kB / 0.6595 GB, free: 64.65 MB / 411.1 MB Notification: Performance of pre-optimization done (n=231): time 5.961e-06/1.816, allocations: 3.281 kB / 0.6595 GB, free: 64.65 MB / 411.1 MB Notification: Performance of matching and sorting (n=258): time 0.02675/1.843, allocations: 8.688 MB / 0.668 GB, free: 63.51 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/1.843, allocations: 81.78 kB / 0.6681 GB, free: 63.44 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005087/1.848, allocations: 2.203 MB / 0.6703 GB, free: 63.21 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005722/1.849, allocations: 25.7 kB / 0.6703 GB, free: 63.18 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001941/1.851, allocations: 2.358 MB / 0.6726 GB, free: 62.26 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00129/1.852, allocations: 0.8484 MB / 0.6734 GB, free: 61.7 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003026/1.852, allocations: 0 / 0.6734 GB, free: 61.7 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0002315/1.853, allocations: 447.8 kB / 0.6738 GB, free: 61.38 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002935/1.855, allocations: 1.263 MB / 0.6751 GB, free: 61.37 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003657/1.859, allocations: 2.225 MB / 0.6772 GB, free: 60.25 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004976/1.864, allocations: 1.823 MB / 0.679 GB, free: 60.2 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.877e-05/1.864, allocations: 7.781 kB / 0.679 GB, free: 60.2 MB / 411.1 MB Notification: Performance of matching and sorting (n=419) (initialization): time 0.01251/1.877, allocations: 4.376 MB / 0.6833 GB, free: 59.86 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.477e-05/1.877, allocations: 17.97 kB / 0.6833 GB, free: 59.86 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.051e-05/1.877, allocations: 31.41 kB / 0.6834 GB, free: 59.86 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002926/1.88, allocations: 0.716 MB / 0.6841 GB, free: 59.8 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005994/1.886, allocations: 0.7596 MB / 0.6848 GB, free: 59.8 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0143/1.9, allocations: 9.331 MB / 0.6939 GB, free: 54.81 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004548/1.905, allocations: 143.2 kB / 0.694 GB, free: 54.8 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008654/1.906, allocations: 145.3 kB / 0.6942 GB, free: 54.8 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (382): * Single equations (assignments): 376 * 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: 4 * 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: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007755/1.907, allocations: 198.3 kB / 0.6944 GB, free: 54.68 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001096/1.908, allocations: 314.7 kB / 0.6947 GB, free: 54.52 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01328/1.921, allocations: 4.131 MB / 0.6987 GB, free: 54.05 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.304e-05/1.921, allocations: 25.16 kB / 0.6987 GB, free: 54.05 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.186e-05/1.921, allocations: 9.906 kB / 0.6987 GB, free: 54.05 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.56e-05/1.921, allocations: 13.59 kB / 0.6988 GB, free: 54.05 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02645/1.948, allocations: 8.476 MB / 0.707 GB, free: 53.23 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-05/1.948, allocations: 2.594 kB / 0.707 GB, free: 53.23 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00374/1.952, allocations: 427 kB / 0.7074 GB, free: 53.23 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004231/1.956, allocations: 0.9425 MB / 0.7084 GB, free: 53.16 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005691/1.957, allocations: 32.03 kB / 0.7084 GB, free: 53.16 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02103/1.978, allocations: 15.33 MB / 0.7234 GB, free: 41.75 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.027e-05/1.978, allocations: 8.438 kB / 0.7234 GB, free: 41.75 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01502/1.993, allocations: 6.287 MB / 0.7295 GB, free: 38.58 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002846/1.996, allocations: 0.6791 MB / 0.7302 GB, free: 38.15 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001141/1.997, allocations: 26.47 kB / 0.7302 GB, free: 38.14 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003617/2, allocations: 123.5 kB / 0.7303 GB, free: 38.14 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007846/2.001, allocations: 190.8 kB / 0.7305 GB, free: 38.11 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002653/2.001, allocations: 73.38 kB / 0.7306 GB, free: 38.1 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.003993/2.005, allocations: 1.626 MB / 0.7322 GB, free: 37.42 MB / 411.1 MB Notification: Performance of sort global known variables: time 4.91e-07/2.006, allocations: 3.75 kB / 0.7322 GB, free: 37.42 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.00618/2.012, allocations: 0.9522 MB / 0.7331 GB, free: 37.4 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (199): * Single equations (assignments): 192 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001365/2.013, allocations: 472.8 kB / 0.7335 GB, free: 37.27 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.009449/2.023, allocations: 3.97 MB / 0.7374 GB, free: 35.48 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/2.023, allocations: 2.969 kB / 0.7374 GB, free: 35.48 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00683/2.03, allocations: 2.683 MB / 0.74 GB, free: 34.05 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006144/2.036, allocations: 0.6786 MB / 0.7407 GB, free: 33.89 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02305/2.059, allocations: 8.112 MB / 0.7486 GB, free: 29.86 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006799/2.066, allocations: 3.446 MB / 0.752 GB, free: 27.26 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001654/2.067, allocations: 253 kB / 0.7522 GB, free: 27.03 MB / 411.1 MB Notification: Performance of SimCode: time 1.273e-06/2.067, allocations: 3.828 kB / 0.7522 GB, free: 27.03 MB / 411.1 MB Notification: Performance of Templates: time 0.6556/2.723, allocations: 221.9 MB / 0.9689 GB, free: 108 kB / 443.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches