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.001235/0.001235, allocations: 96.02 kB / 16.95 MB, free: 6.453 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.001445/0.001446, allocations: 182.7 kB / 17.84 MB, free: 6.008 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.559/1.559, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004639/0.000464, allocations: 12 kB / 280.8 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1177, allocations: 47.58 MB / 328.4 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02228/0.1401, allocations: 19.15 MB / 347.5 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01776/0.1579, allocations: 6.035 MB / 353.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006048/0.164, allocations: 111.5 kB / 353.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005695/0.1697, allocations: 1.099 MB / 354.8 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008956/0.1787, allocations: 1.713 MB / 356.5 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00481/0.1836, allocations: 0.8499 MB / 357.3 MB, free: 7.016 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01452/0.1981, allocations: 6.523 MB / 363.8 MB, free: 476 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01139/0.2096, allocations: 3.69 MB / 367.5 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006434/0.2161, allocations: 2.124 MB / 369.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007346/0.2235, allocations: 2.809 MB / 372.5 MB, free: 7.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002014/0.2255, allocations: 340 kB / 372.8 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004043/0.2296, allocations: 0.5817 MB / 373.4 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004118/0.2338, allocations: 1.433 MB / 374.8 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004505/0.2383, allocations: 1.194 MB / 376 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2587/0.4971, allocations: 8.751 MB / 384.8 MB, free: 19.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/0.4972, allocations: 0 / 384.8 MB, free: 19.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.4972, allocations: 3.812 kB / 384.8 MB, free: 19.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006289/0.4978, allocations: 0 / 384.8 MB, free: 19.34 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.02282/0.5207, allocations: 5.869 MB / 390.6 MB, free: 17.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.517e-05/0.5207, allocations: 8.688 kB / 390.6 MB, free: 17.08 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008799/0.5295, allocations: 1.065 MB / 391.7 MB, free: 16.76 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01149/0.5411, allocations: 3.354 MB / 395.1 MB, free: 16.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000672/0.5418, allocations: 415.1 kB / 395.5 MB, free: 16.08 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002626/0.5444, allocations: 0.5223 MB / 396 MB, free: 16.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02055/0.565, allocations: 7.031 MB / 403 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001474/0.5652, allocations: 14.14 kB / 403 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006184/0.5658, allocations: 220 kB / 403.2 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002689/0.5661, allocations: 259.5 kB / 403.5 MB, free: 14.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01087/0.577, allocations: 5.927 MB / 409.4 MB, free: 13.51 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05916/0.6362, allocations: 22.53 MB / 432 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01217/0.6484, allocations: 8.291 MB / 440.2 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005534/0.654, allocations: 2.196 MB / 442.4 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01932/0.6734, allocations: 6.195 MB / 448.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.895e-05/0.6735, allocations: 64.55 kB / 448.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=220): time 4.468e-06/0.6735, allocations: 0 / 448.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=240): time 0.02751/0.7011, allocations: 11.31 MB / 460 MB, free: 14.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.7012, allocations: 80.5 kB / 460.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007244/0.7084, allocations: 3.128 MB / 463.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005743/0.709, allocations: 65.7 kB / 463.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002462/0.7115, allocations: 2.502 MB / 465.8 MB, free: 8.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001143/0.7126, allocations: 0.8267 MB / 466.6 MB, free: 7.949 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005048/0.7132, allocations: 63.94 kB / 466.7 MB, free: 7.887 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003314/0.7135, allocations: 432.6 kB / 467.1 MB, free: 7.457 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003027/0.7166, allocations: 1.338 MB / 468.4 MB, free: 6.117 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003864/0.7204, allocations: 2.347 MB / 470.8 MB, free: 3.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003718/0.7242, allocations: 1.736 MB / 472.5 MB, free: 1.613 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.873e-05/0.7242, allocations: 10.41 kB / 472.5 MB, free: 1.605 MB / 366.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.009788/0.734, allocations: 4.716 MB / 477.2 MB, free: 12.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.613e-05/0.7341, allocations: 20 kB / 477.3 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-05/0.7342, allocations: 32 kB / 477.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001297/0.7355, allocations: 0.5293 MB / 477.8 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002996/0.7385, allocations: 0.7532 MB / 478.6 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/0.7487, allocations: 9.409 MB / 488 MB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004686/0.7534, allocations: 199.6 kB / 488.2 MB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009415/0.7544, allocations: 140 kB / 488.3 MB, free: 1.332 MB / 382.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 (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.005796/0.7602, allocations: 1.573 MB / 489.9 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002139/0.7624, allocations: 343.8 kB / 490.2 MB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01191/0.7743, allocations: 4.072 MB / 494.3 MB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.072e-05/0.7744, allocations: 24 kB / 494.3 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.039e-05/0.7745, allocations: 8 kB / 494.3 MB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.209e-05/0.7746, allocations: 15.95 kB / 494.3 MB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02912/0.8037, allocations: 8.989 MB / 0.4915 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-05/0.8038, allocations: 4.594 kB / 0.4915 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002295/0.8061, allocations: 422.7 kB / 0.4919 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002498/0.8086, allocations: 0.7364 MB / 0.4927 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004832/0.8091, allocations: 63.97 kB / 0.4927 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01729/0.8264, allocations: 15.31 MB / 0.5077 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.035e-05/0.8265, allocations: 7.094 kB / 0.5077 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0133/0.8398, allocations: 5.864 MB / 0.5134 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002834/0.8427, allocations: 0.7036 MB / 0.5141 GB, free: 9.961 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001512/0.8442, allocations: 63.94 kB / 0.5141 GB, free: 9.898 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003039/0.8473, allocations: 151.1 kB / 0.5143 GB, free: 9.754 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006671/0.848, allocations: 184.7 kB / 0.5145 GB, free: 9.574 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000278/0.8483, allocations: 67.98 kB / 0.5145 GB, free: 9.508 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005773/0.854, allocations: 2.099 MB / 0.5166 GB, free: 7.418 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.8541, allocations: 0 / 0.5166 GB, free: 7.418 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006503/0.8606, allocations: 0.9923 MB / 0.5176 GB, free: 6.426 MB / 430.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 (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.0009275/0.8615, allocations: 218.1 kB / 0.5178 GB, free: 6.227 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009189/0.8707, allocations: 4.142 MB / 0.5218 GB, free: 2.09 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/0.8708, allocations: 0 / 0.5218 GB, free: 2.09 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005302/0.8761, allocations: 2.771 MB / 0.5245 GB, free: 15.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01057/0.8867, allocations: 0.9214 MB / 0.5254 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03809/0.9249, allocations: 11.94 MB / 0.5371 GB, free: 2.328 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.264/1.189, allocations: 3.41 MB / 0.5404 GB, free: 160.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005223/1.194, allocations: 0.8115 MB / 0.5412 GB, free: 160.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/1.196, allocations: 242.4 kB / 0.5414 GB, free: 160.1 MB / 446.1 MB Notification: Performance of SimCode: time 4.338e-06/1.196, allocations: 0 / 0.5414 GB, free: 160.1 MB / 446.1 MB Notification: Performance of Templates: time 0.09825/1.294, allocations: 47.5 MB / 0.5878 GB, free: 130.1 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