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.001501/0.001501, allocations: 111.9 kB / 18.37 MB, free: 4.723 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.001635/0.001635, allocations: 184.5 kB / 19.29 MB, free: 3.805 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.364/1.364, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001228/0.001228, allocations: 55.91 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09481/0.09604, allocations: 46.61 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.228/0.3241, allocations: 21.68 MB / 397.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01588/0.34, allocations: 6.438 MB / 403.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006663/0.3468, allocations: 124.8 kB / 404 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006275/0.3531, allocations: 1.468 MB / 405.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01019/0.3633, allocations: 2.052 MB / 407.5 MB, free: 8.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004934/0.3683, allocations: 1.306 MB / 408.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01199/0.3803, allocations: 6.527 MB / 415.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00929/0.3896, allocations: 5.512 MB / 420.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007261/0.3969, allocations: 2.979 MB / 423.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008067/0.405, allocations: 3.565 MB / 427.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002901/0.408, allocations: 0.8164 MB / 428.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0045/0.4125, allocations: 1.097 MB / 429.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002979/0.4155, allocations: 2.03 MB / 431.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007847/0.4234, allocations: 3.532 MB / 434.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01511/0.4385, allocations: 10.78 MB / 445.7 MB, free: 9.551 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.4386, allocations: 3.938 kB / 445.7 MB, free: 9.547 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.4386, allocations: 4 kB / 445.7 MB, free: 9.543 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004028/0.439, allocations: 0 / 445.7 MB, free: 9.543 MB / 366.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.02346/0.4625, allocations: 6.918 MB / 452.6 MB, free: 2.543 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.4625, allocations: 12.02 kB / 452.6 MB, free: 2.531 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006489/0.469, allocations: 1.055 MB / 453.7 MB, free: 1.469 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01025/0.4793, allocations: 3.52 MB / 457.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005725/0.48, allocations: 415.2 kB / 457.6 MB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002503/0.4825, allocations: 0.5271 MB / 458.1 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02195/0.5045, allocations: 7.052 MB / 465.2 MB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003779/0.5049, allocations: 11.84 kB / 465.2 MB, free: 5.805 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002007/0.5069, allocations: 224 kB / 465.4 MB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003275/0.5073, allocations: 258.6 kB / 465.7 MB, free: 5.332 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01581/0.5231, allocations: 5.933 MB / 471.6 MB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04946/0.5726, allocations: 22.16 MB / 493.8 MB, free: 8.656 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009777/0.5824, allocations: 8.289 MB / 0.4903 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004345/0.5868, allocations: 2.195 MB / 0.4924 GB, free: 13.28 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01404/0.6009, allocations: 6.168 MB / 0.4984 GB, free: 6.977 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.812e-05/0.601, allocations: 60.56 kB / 0.4985 GB, free: 6.906 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 8.406e-06/0.6011, allocations: 0 / 0.4985 GB, free: 6.906 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02486/0.6259, allocations: 11.14 MB / 0.5094 GB, free: 11.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/0.626, allocations: 77.41 kB / 0.5095 GB, free: 11.42 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007103/0.6331, allocations: 3.152 MB / 0.5125 GB, free: 8.266 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000459/0.6336, allocations: 69.64 kB / 0.5126 GB, free: 8.191 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002011/0.6357, allocations: 2.498 MB / 0.515 GB, free: 5.664 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001115/0.6368, allocations: 0.8241 MB / 0.5158 GB, free: 4.828 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00146/0.6383, allocations: 0.5614 MB / 0.5164 GB, free: 4.258 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.6384, allocations: 305.1 kB / 0.5167 GB, free: 3.957 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002563/0.641, allocations: 1.337 MB / 0.518 GB, free: 2.617 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003305/0.6443, allocations: 2.335 MB / 0.5203 GB, free: 15.84 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006164/0.6505, allocations: 3.928 MB / 0.5241 GB, free: 11.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.424e-05/0.6506, allocations: 8 kB / 0.5241 GB, free: 11.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.009256/0.6598, allocations: 4.702 MB / 0.5287 GB, free: 6.613 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.608e-05/0.6599, allocations: 20 kB / 0.5287 GB, free: 6.594 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.787e-05/0.66, allocations: 32 kB / 0.5288 GB, free: 6.562 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/0.6613, allocations: 0.5257 MB / 0.5293 GB, free: 6.016 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002913/0.6642, allocations: 0.7449 MB / 0.53 GB, free: 5.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009702/0.674, allocations: 10.28 MB / 0.54 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003448/0.6774, allocations: 187.8 kB / 0.5402 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006876/0.6782, allocations: 140 kB / 0.5404 GB, free: 9.965 MB / 478.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.004028/0.6822, allocations: 1.574 MB / 0.5419 GB, free: 8.379 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001242/0.6835, allocations: 343.7 kB / 0.5422 GB, free: 8.039 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008599/0.6921, allocations: 4.046 MB / 0.5462 GB, free: 3.895 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.757e-05/0.6922, allocations: 27.94 kB / 0.5462 GB, free: 3.867 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.67e-05/0.6922, allocations: 8 kB / 0.5462 GB, free: 3.859 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.993e-05/0.6923, allocations: 11.95 kB / 0.5462 GB, free: 3.848 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2574/0.9497, allocations: 8.965 MB / 0.555 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/0.9497, allocations: 5.297 kB / 0.555 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001808/0.9515, allocations: 410.3 kB / 0.5554 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001971/0.9535, allocations: 0.7332 MB / 0.5561 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002212/0.9538, allocations: 67.66 kB / 0.5561 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01317/0.9669, allocations: 16.73 MB / 0.5725 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/0.967, allocations: 6.828 kB / 0.5725 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/0.977, allocations: 5.847 MB / 0.5782 GB, free: 128.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002067/0.9792, allocations: 0.6894 MB / 0.5789 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007085/0.9799, allocations: 58.25 kB / 0.5789 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001825/0.9817, allocations: 143.1 kB / 0.5791 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005365/0.9823, allocations: 185.1 kB / 0.5792 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001641/0.9824, allocations: 71.42 kB / 0.5793 GB, free: 128 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003901/0.9863, allocations: 2.127 MB / 0.5814 GB, free: 127.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.9864, allocations: 0 / 0.5814 GB, free: 127.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004641/0.991, allocations: 0.9928 MB / 0.5824 GB, free: 127.1 MB / 478.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.0006054/0.9916, allocations: 260 kB / 0.5826 GB, free: 126.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006172/0.9978, allocations: 4.152 MB / 0.5867 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.9978, allocations: 3.938 kB / 0.5867 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003818/1.002, allocations: 2.735 MB / 0.5893 GB, free: 123.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00441/1.006, allocations: 0.9521 MB / 0.5903 GB, free: 123.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01719/1.023, allocations: 9.937 MB / 0.6 GB, free: 117 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002725/1.026, allocations: 3.324 MB / 0.6032 GB, free: 114.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/1.027, allocations: 266.9 kB / 0.6035 GB, free: 114.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.603e-06/1.027, allocations: 0 / 0.6035 GB, free: 114.2 MB / 478.1 MB Notification: Performance of Templates: time 0.4419/1.469, allocations: 265.1 MB / 0.8624 GB, free: 70.82 MB / 0.4981 GB 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/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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