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.001366/0.001366, allocations: 179.2 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.622/1.622, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007613/0.0007612, allocations: 95.89 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003648/0.000365, allocations: 11.98 kB / 327 MB, free: 180 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2857, allocations: 47.58 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.01832/0.3041, allocations: 19.15 MB / 393.7 MB, free: 29.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01399/0.3181, allocations: 6.047 MB / 399.8 MB, free: 23.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004748/0.3229, allocations: 111.5 kB / 399.9 MB, free: 23.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003649/0.3266, allocations: 1.095 MB / 401 MB, free: 22.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006618/0.3332, allocations: 1.694 MB / 402.7 MB, free: 20.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002847/0.3361, allocations: 0.8729 MB / 403.5 MB, free: 19.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007655/0.3438, allocations: 6.529 MB / 410.1 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003916/0.3477, allocations: 3.686 MB / 413.7 MB, free: 9.504 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002935/0.3506, allocations: 2.132 MB / 415.9 MB, free: 7.363 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003204/0.3539, allocations: 2.809 MB / 418.7 MB, free: 4.543 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006483/0.3545, allocations: 340 kB / 419 MB, free: 4.211 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001577/0.3561, allocations: 0.5739 MB / 419.6 MB, free: 3.637 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009229/0.357, allocations: 1.429 MB / 421 MB, free: 2.203 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.3582, allocations: 1.202 MB / 422.2 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007446/0.3657, allocations: 8.753 MB / 431 MB, free: 8.215 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3657, allocations: 0 / 431 MB, free: 8.215 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3657, allocations: 0 / 431 MB, free: 8.215 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002825/0.366, allocations: 0 / 431 MB, free: 8.215 MB / 314.7 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.01341/0.3794, allocations: 5.87 MB / 436.8 MB, free: 2.266 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.3795, allocations: 8.031 kB / 436.9 MB, free: 2.258 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005024/0.3845, allocations: 1.07 MB / 437.9 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006581/0.3911, allocations: 3.345 MB / 441.3 MB, free: 13.76 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003416/0.3915, allocations: 426.5 kB / 441.7 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001009/0.3925, allocations: 0.5232 MB / 442.2 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01258/0.4051, allocations: 7.028 MB / 449.2 MB, free: 5.715 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001088/0.4052, allocations: 7.906 kB / 449.2 MB, free: 5.707 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004603/0.4057, allocations: 216 kB / 449.5 MB, free: 5.496 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002233/0.4059, allocations: 262.6 kB / 449.7 MB, free: 5.238 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01086/0.4168, allocations: 5.929 MB / 455.6 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03563/0.4525, allocations: 22.53 MB / 478.2 MB, free: 8.203 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007807/0.4603, allocations: 8.287 MB / 486.5 MB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003589/0.4639, allocations: 2.199 MB / 488.7 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01142/0.4754, allocations: 6.205 MB / 494.9 MB, free: 6.477 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.4755, allocations: 60.56 kB / 494.9 MB, free: 6.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=220): time 3.767e-06/0.4755, allocations: 0 / 494.9 MB, free: 6.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=240): time 0.2242/0.6997, allocations: 11.31 MB / 0.4944 GB, free: 101.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/0.6998, allocations: 83.92 kB / 0.4944 GB, free: 101.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005064/0.7049, allocations: 3.127 MB / 0.4975 GB, free: 100.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003048/0.7052, allocations: 67.73 kB / 0.4976 GB, free: 100.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001352/0.7066, allocations: 2.492 MB / 0.5 GB, free: 98.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006315/0.7072, allocations: 0.8345 MB / 0.5008 GB, free: 97.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.7073, allocations: 65.31 kB / 0.5009 GB, free: 97.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.7075, allocations: 425.9 kB / 0.5013 GB, free: 97.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002103/0.7096, allocations: 1.337 MB / 0.5026 GB, free: 96.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002434/0.712, allocations: 2.35 MB / 0.5049 GB, free: 95.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002216/0.7143, allocations: 1.734 MB / 0.5066 GB, free: 94.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.48e-05/0.7143, allocations: 13.66 kB / 0.5066 GB, free: 94.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.00679/0.7211, allocations: 4.718 MB / 0.5112 GB, free: 92.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.597e-05/0.7211, allocations: 20.61 kB / 0.5112 GB, free: 92.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-05/0.7212, allocations: 31.78 kB / 0.5112 GB, free: 92.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.7223, allocations: 0.5218 MB / 0.5118 GB, free: 92.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002423/0.7247, allocations: 0.7531 MB / 0.5125 GB, free: 91.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006408/0.7311, allocations: 9.395 MB / 0.5217 GB, free: 82.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003147/0.7343, allocations: 201.2 kB / 0.5219 GB, free: 82.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002697/0.7346, allocations: 140 kB / 0.522 GB, free: 82.18 MB / 378.7 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 (380): * Single equations (assignments): 373 * 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%) 3,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002876/0.7375, allocations: 1.574 MB / 0.5235 GB, free: 80.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006581/0.7381, allocations: 347.7 kB / 0.5239 GB, free: 80.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005703/0.7438, allocations: 4.067 MB / 0.5278 GB, free: 76.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.602e-05/0.7439, allocations: 24 kB / 0.5279 GB, free: 76.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.7439, allocations: 13.53 kB / 0.5279 GB, free: 76.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.905e-05/0.7439, allocations: 11.95 kB / 0.5279 GB, free: 76.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01224/0.7562, allocations: 8.991 MB / 0.5367 GB, free: 66.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/0.7562, allocations: 4.594 kB / 0.5367 GB, free: 66.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001643/0.7578, allocations: 419.4 kB / 0.5371 GB, free: 66.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001637/0.7595, allocations: 0.74 MB / 0.5378 GB, free: 65.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001479/0.7597, allocations: 67.97 kB / 0.5378 GB, free: 65.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01038/0.77, allocations: 15.3 MB / 0.5528 GB, free: 49.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.179e-06/0.7701, allocations: 15.92 kB / 0.5528 GB, free: 49.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008092/0.7782, allocations: 5.852 MB / 0.5585 GB, free: 43.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/0.7798, allocations: 0.7075 MB / 0.5592 GB, free: 42.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004165/0.7803, allocations: 59.98 kB / 0.5593 GB, free: 42.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001559/0.7818, allocations: 147.9 kB / 0.5594 GB, free: 42.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003893/0.7822, allocations: 184.6 kB / 0.5596 GB, free: 42.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001315/0.7824, allocations: 71.98 kB / 0.5597 GB, free: 42.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002957/0.7853, allocations: 2.099 MB / 0.5617 GB, free: 40.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7853, allocations: 3.5 kB / 0.5617 GB, free: 40.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003362/0.7887, allocations: 0.9947 MB / 0.5627 GB, free: 39.03 MB / 378.7 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 (201): * Single equations (assignments): 193 * 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%) 3,(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.000455/0.7892, allocations: 221.4 kB / 0.5629 GB, free: 38.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005404/0.7946, allocations: 4.14 MB / 0.5669 GB, free: 34.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.7946, allocations: 0 / 0.5669 GB, free: 34.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003435/0.798, allocations: 2.766 MB / 0.5696 GB, free: 31.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00403/0.8021, allocations: 0.9209 MB / 0.5705 GB, free: 30.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01463/0.8167, allocations: 11.96 MB / 0.5822 GB, free: 18.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002304/0.8191, allocations: 3.327 MB / 0.5855 GB, free: 15.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009842/0.8201, allocations: 267.4 kB / 0.5857 GB, free: 15.13 MB / 378.7 MB Notification: Performance of SimCode: time 2.434e-06/0.8201, allocations: 0 / 0.5857 GB, free: 15.13 MB / 378.7 MB Notification: Performance of Templates: time 0.5833/1.403, allocations: 264.4 MB / 0.8439 GB, free: 130.8 MB / 442.7 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/jenkins/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