Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008712/0.0008717, allocations: 96.09 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009848/0.0009848, allocations: 206.6 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002025/0.0002025, allocations: 4 kB / 307.9 MB, free: 0.6758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07904/0.07926, allocations: 51.53 MB / 359.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.1599/0.2392, allocations: 21.19 MB / 380.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01066/0.2499, allocations: 6.494 MB / 387.1 MB, free: 6.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002799/0.2528, allocations: 131.6 kB / 387.2 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003052/0.2558, allocations: 1.286 MB / 388.5 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004591/0.2604, allocations: 1.833 MB / 390.3 MB, free: 5.094 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002323/0.2628, allocations: 1.202 MB / 391.5 MB, free: 4.285 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007421/0.2702, allocations: 7.181 MB / 398.7 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004966/0.2752, allocations: 4.64 MB / 403.3 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003109/0.2783, allocations: 2.172 MB / 405.5 MB, free: 13.35 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003298/0.2816, allocations: 2.928 MB / 408.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005053/0.2821, allocations: 336 kB / 408.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001466/0.2836, allocations: 0.6558 MB / 409.4 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001109/0.2847, allocations: 1.448 MB / 410.9 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002547/0.2873, allocations: 2.928 MB / 413.8 MB, free: 5.449 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007803/0.2951, allocations: 10.14 MB / 423.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2951, allocations: 0 / 423.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2951, allocations: 0 / 423.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001429/0.2953, allocations: 4 kB / 423.9 MB, free: 11.27 MB / 334.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.01161/0.3069, allocations: 5.847 MB / 429.8 MB, free: 5.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.3069, allocations: 12.02 kB / 429.8 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009755/0.3079, allocations: 0.7329 MB / 430.5 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004538/0.3125, allocations: 1.079 MB / 431.6 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005674/0.3182, allocations: 3.625 MB / 435.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00031/0.3185, allocations: 423 kB / 435.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007561/0.3193, allocations: 0.5233 MB / 436.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01057/0.3298, allocations: 7.067 MB / 443.2 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001166/0.33, allocations: 19.84 kB / 443.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004396/0.3304, allocations: 220 kB / 443.5 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000219/0.3306, allocations: 258.6 kB / 443.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009888/0.3405, allocations: 5.983 MB / 449.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03702/0.3776, allocations: 22.73 MB / 472.4 MB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008361/0.386, allocations: 8.558 MB / 481 MB, free: 424 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003687/0.3897, allocations: 2.304 MB / 483.3 MB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01058/0.4003, allocations: 6.494 MB / 489.8 MB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.696e-05/0.4004, allocations: 56.56 kB / 489.8 MB, free: 7.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=220): time 4.108e-06/0.4004, allocations: 0 / 489.8 MB, free: 7.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=240): time 0.02133/0.4218, allocations: 11.27 MB / 0.4894 GB, free: 11.83 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/0.4218, allocations: 73.41 kB / 0.4894 GB, free: 11.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005012/0.4269, allocations: 3.169 MB / 0.4925 GB, free: 8.578 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002852/0.4272, allocations: 65.7 kB / 0.4926 GB, free: 8.508 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0018/0.429, allocations: 2.51 MB / 0.495 GB, free: 5.969 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00088/0.4299, allocations: 0.8318 MB / 0.4959 GB, free: 5.125 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003891/0.4303, allocations: 252.3 kB / 0.4961 GB, free: 4.871 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.013e-05/0.4304, allocations: 305.1 kB / 0.4964 GB, free: 4.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002254/0.4326, allocations: 1.349 MB / 0.4977 GB, free: 3.219 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00279/0.4354, allocations: 2.354 MB / 0.5 GB, free: 428 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005123/0.4406, allocations: 3.948 MB / 0.5039 GB, free: 12 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.998e-05/0.4406, allocations: 12 kB / 0.5039 GB, free: 11.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007478/0.4481, allocations: 4.757 MB / 0.5085 GB, free: 7.117 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.571e-05/0.4481, allocations: 20.06 kB / 0.5085 GB, free: 7.098 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.521e-05/0.4482, allocations: 36 kB / 0.5086 GB, free: 7.062 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.4494, allocations: 0.5335 MB / 0.5091 GB, free: 6.508 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00255/0.4519, allocations: 0.7527 MB / 0.5098 GB, free: 5.754 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008063/0.46, allocations: 9.604 MB / 0.5192 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002434/0.4624, allocations: 199.7 kB / 0.5194 GB, free: 11.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002597/0.4627, allocations: 144 kB / 0.5195 GB, free: 11.15 MB / 446.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 (377): * Single equations (assignments): 370 * 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,6,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.002621/0.4653, allocations: 1.586 MB / 0.5211 GB, free: 9.551 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006593/0.466, allocations: 351.6 kB / 0.5214 GB, free: 9.203 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006645/0.4727, allocations: 4.101 MB / 0.5254 GB, free: 5.008 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-05/0.4727, allocations: 24 kB / 0.5254 GB, free: 4.984 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.268e-05/0.4727, allocations: 8 kB / 0.5255 GB, free: 4.977 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.422e-05/0.4728, allocations: 15.89 kB / 0.5255 GB, free: 4.961 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1637/0.6364, allocations: 9.029 MB / 0.5343 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/0.6365, allocations: 5.031 kB / 0.5343 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001628/0.6381, allocations: 418.6 kB / 0.5347 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001777/0.6399, allocations: 0.7492 MB / 0.5354 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001539/0.6401, allocations: 67.66 kB / 0.5355 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01115/0.6512, allocations: 15.5 MB / 0.5506 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.6513, allocations: 10.03 kB / 0.5506 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008381/0.6596, allocations: 5.917 MB / 0.5564 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/0.661, allocations: 0.7014 MB / 0.5571 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003827/0.6613, allocations: 69.95 kB / 0.5572 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/0.6628, allocations: 148.8 kB / 0.5573 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004034/0.6632, allocations: 178.4 kB / 0.5575 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001414/0.6634, allocations: 68.55 kB / 0.5575 GB, free: 120.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002736/0.6661, allocations: 2.144 MB / 0.5596 GB, free: 119.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6661, allocations: 0 / 0.5596 GB, free: 119.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002746/0.6689, allocations: 1.001 MB / 0.5606 GB, free: 119.4 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 (198): * Single equations (assignments): 190 * 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,6,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.007518/0.6764, allocations: 6.633 MB / 0.5671 GB, free: 116.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005055/0.6815, allocations: 4.173 MB / 0.5712 GB, free: 114.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.6815, allocations: 0 / 0.5712 GB, free: 114.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003334/0.6848, allocations: 2.776 MB / 0.5739 GB, free: 112.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005782/0.6906, allocations: 0.9144 MB / 0.5748 GB, free: 112.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05658/0.7472, allocations: 45.7 MB / 0.6194 GB, free: 63.35 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00232/0.7496, allocations: 3.418 MB / 0.6227 GB, free: 59.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002441/0.752, allocations: 0.8074 MB / 0.6235 GB, free: 59.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001908/0.7539, allocations: 2.112 MB / 0.6256 GB, free: 56.98 MB / 446.1 MB Notification: Performance of SimCode: time 8.02e-07/0.754, allocations: 0 / 0.6256 GB, free: 56.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2712/1.025, allocations: 86.52 MB / 0.7101 GB, free: 136.1 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001585/1.025, allocations: 269.7 kB / 0.7103 GB, free: 135.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.551/4.576, allocations: 0 / 0.7103 GB, free: 135.8 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches