Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 102.9 kB / 17.16 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001207/0.001208, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.316/1.316, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 55.92 kB / 280 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0835/0.08462, allocations: 46.62 MB / 326.6 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02014/0.1048, allocations: 21.38 MB / 348 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01163/0.1165, allocations: 6.376 MB / 354.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003755/0.1203, allocations: 119.4 kB / 354.5 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003748/0.1241, allocations: 1.259 MB / 355.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006973/0.1311, allocations: 1.849 MB / 357.6 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003388/0.1345, allocations: 1.201 MB / 358.8 MB, free: 4.559 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009386/0.1439, allocations: 7.08 MB / 365.9 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005682/0.1496, allocations: 4.607 MB / 370.5 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003537/0.1532, allocations: 2.494 MB / 373 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005249/0.1584, allocations: 3.362 MB / 376.3 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001227/0.1597, allocations: 500 kB / 376.8 MB, free: 2.391 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002388/0.1621, allocations: 0.7886 MB / 377.6 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1566/0.3187, allocations: 1.675 MB / 379.3 MB, free: 20.33 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007313/0.3261, allocations: 3.18 MB / 382.5 MB, free: 20.08 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01352/0.3396, allocations: 10.43 MB / 392.9 MB, free: 18.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.3397, allocations: 0 / 392.9 MB, free: 18.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3397, allocations: 0 / 392.9 MB, free: 18.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004133/0.3401, allocations: 0 / 392.9 MB, free: 18.96 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.0213/0.3614, allocations: 6.915 MB / 399.8 MB, free: 15.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.3615, allocations: 13.56 kB / 399.8 MB, free: 15.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005362/0.3669, allocations: 1.061 MB / 400.9 MB, free: 15.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006784/0.3737, allocations: 3.443 MB / 404.3 MB, free: 13.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002687/0.374, allocations: 418.2 kB / 404.7 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001101/0.3751, allocations: 0.525 MB / 405.3 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01634/0.3914, allocations: 7.047 MB / 412.3 MB, free: 9.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001767/0.3916, allocations: 17.75 kB / 412.3 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001063/0.3927, allocations: 221.3 kB / 412.5 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002357/0.393, allocations: 262.4 kB / 412.8 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01193/0.4049, allocations: 5.933 MB / 418.7 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04796/0.4529, allocations: 22.44 MB / 441.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009222/0.4622, allocations: 8.277 MB / 449.4 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003742/0.466, allocations: 2.176 MB / 451.6 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0114/0.4774, allocations: 6.195 MB / 457.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.107e-05/0.4775, allocations: 52.56 kB / 457.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=220): time 4.208e-06/0.4775, allocations: 4 kB / 457.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=240): time 0.02309/0.5006, allocations: 11.14 MB / 469 MB, free: 2.934 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.5006, allocations: 77.41 kB / 469.1 MB, free: 2.844 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004853/0.5055, allocations: 3.148 MB / 472.2 MB, free: 15.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003739/0.5059, allocations: 69.7 kB / 472.3 MB, free: 15.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001799/0.5077, allocations: 2.497 MB / 474.8 MB, free: 13.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009205/0.5086, allocations: 0.8348 MB / 475.6 MB, free: 12.28 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009313/0.5096, allocations: 0.5574 MB / 476.2 MB, free: 11.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.5097, allocations: 305.1 kB / 476.5 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002204/0.5119, allocations: 1.334 MB / 477.8 MB, free: 10.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002757/0.5147, allocations: 2.344 MB / 480.2 MB, free: 7.301 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005131/0.5198, allocations: 3.916 MB / 484.1 MB, free: 3.043 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.518e-05/0.5199, allocations: 12 kB / 484.1 MB, free: 3.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008014/0.5279, allocations: 4.71 MB / 488.8 MB, free: 14.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.132e-05/0.528, allocations: 19.12 kB / 488.8 MB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.725e-05/0.528, allocations: 36.66 kB / 488.9 MB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001242/0.5293, allocations: 0.5323 MB / 489.4 MB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002742/0.532, allocations: 0.7415 MB / 490.1 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00878/0.5408, allocations: 9.434 MB / 499.6 MB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003612/0.5445, allocations: 175.8 kB / 499.7 MB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004172/0.5449, allocations: 144 kB / 499.9 MB, free: 2.766 MB / 398.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 (380): * Single equations (assignments): 373 * 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,12,100.0%), (1,3,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.00331/0.5482, allocations: 1.58 MB / 0.4897 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008747/0.5491, allocations: 347.7 kB / 0.49 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007106/0.5562, allocations: 4.045 MB / 0.494 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.166e-05/0.5563, allocations: 24 kB / 0.494 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.53e-05/0.5563, allocations: 8 kB / 0.494 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.47e-05/0.5563, allocations: 15.89 kB / 0.494 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01598/0.5723, allocations: 8.98 MB / 0.5028 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/0.5724, allocations: 8 kB / 0.5028 GB, free: 3.652 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0018/0.5742, allocations: 408.3 kB / 0.5032 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001975/0.5762, allocations: 0.7362 MB / 0.5039 GB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000247/0.5764, allocations: 67.97 kB / 0.504 GB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01416/0.5906, allocations: 15.32 MB / 0.5189 GB, free: 2.137 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.573e-06/0.5906, allocations: 7.281 kB / 0.519 GB, free: 2.133 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009823/0.6005, allocations: 5.837 MB / 0.5247 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002396/0.6029, allocations: 0.6959 MB / 0.5253 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008751/0.6038, allocations: 59.98 kB / 0.5254 GB, free: 11.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001966/0.6058, allocations: 143.8 kB / 0.5255 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004896/0.6063, allocations: 178 kB / 0.5257 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001624/0.6064, allocations: 71.98 kB / 0.5258 GB, free: 11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004134/0.6106, allocations: 2.127 MB / 0.5278 GB, free: 8.883 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6106, allocations: 0 / 0.5278 GB, free: 8.883 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004844/0.6155, allocations: 0.9883 MB / 0.5288 GB, free: 7.895 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 (201): * Single equations (assignments): 193 * 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,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007465/0.6162, allocations: 256.3 kB / 0.529 GB, free: 7.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006662/0.6229, allocations: 4.133 MB / 0.5331 GB, free: 3.535 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.6229, allocations: 0 / 0.5331 GB, free: 3.535 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004813/0.6278, allocations: 2.753 MB / 0.5358 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1773/0.8051, allocations: 0.8948 MB / 0.5366 GB, free: 159.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01943/0.8246, allocations: 12.3 MB / 0.5487 GB, free: 154.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003116/0.8277, allocations: 3.409 MB / 0.552 GB, free: 153.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003062/0.8308, allocations: 0.8061 MB / 0.5528 GB, free: 153.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007231/0.8315, allocations: 243.8 kB / 0.553 GB, free: 153.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.323e-06/0.8316, allocations: 3.5 kB / 0.553 GB, free: 153.1 MB / 446.1 MB Notification: Performance of Templates: time 0.07496/0.9065, allocations: 49.4 MB / 0.6013 GB, free: 112 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches