Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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.001112/0.001112, allocations: 108.7 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 201.8 kB / 18.26 MB, free: 5.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.4 MB / 246.4 MB, free: 9.074 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 57.86 kB / 306.6 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1245, allocations: 50.53 MB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.2008/0.3254, allocations: 20.64 MB / 377.7 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01094/0.3364, allocations: 6.072 MB / 383.8 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00388/0.3403, allocations: 127.7 kB / 383.9 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004226/0.3446, allocations: 1.183 MB / 385.1 MB, free: 6.734 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006657/0.3513, allocations: 1.706 MB / 386.8 MB, free: 5.641 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003148/0.3545, allocations: 1.142 MB / 388 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008609/0.3631, allocations: 6.306 MB / 394.3 MB, free: 1.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007661/0.3708, allocations: 5.441 MB / 399.7 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004412/0.3752, allocations: 2.775 MB / 402.5 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004999/0.3802, allocations: 3.411 MB / 405.9 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001925/0.3822, allocations: 0.7837 MB / 406.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003194/0.3854, allocations: 1.097 MB / 407.8 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002023/0.3874, allocations: 1.944 MB / 409.7 MB, free: 7.832 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004185/0.3916, allocations: 3.353 MB / 413.1 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009887/0.4015, allocations: 10.24 MB / 423.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.4015, allocations: 7.984 kB / 423.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.4015, allocations: 0 / 423.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002118/0.4018, allocations: 3.938 kB / 423.3 MB, free: 10.18 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01583/0.4176, allocations: 6.617 MB / 430 MB, free: 3.477 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.4176, allocations: 8.031 kB / 430 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001032/0.4187, allocations: 0.7 MB / 430.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004644/0.4233, allocations: 1.021 MB / 431.7 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006677/0.43, allocations: 3.447 MB / 435.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003753/0.4304, allocations: 390.8 kB / 435.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001301/0.4317, allocations: 0.5037 MB / 436 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01311/0.4449, allocations: 6.783 MB / 442.8 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001229/0.445, allocations: 7.906 kB / 442.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005432/0.4456, allocations: 204 kB / 443 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002265/0.4458, allocations: 246.2 kB / 443.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01186/0.4577, allocations: 5.751 MB / 449 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03711/0.4948, allocations: 21.18 MB / 470.2 MB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008749/0.5036, allocations: 8.811 MB / 479 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003628/0.5073, allocations: 2.222 MB / 481.2 MB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0111/0.5184, allocations: 6.216 MB / 487.4 MB, free: 8.105 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.52e-05/0.5185, allocations: 56.56 kB / 487.5 MB, free: 8.043 MB / 398.1 MB Notification: Performance of pre-optimization done (n=205): time 3.617e-06/0.5185, allocations: 0 / 487.5 MB, free: 8.043 MB / 398.1 MB Notification: Performance of matching and sorting (n=222): time 0.02124/0.5397, allocations: 10.42 MB / 497.9 MB, free: 13.37 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.5398, allocations: 73.41 kB / 498 MB, free: 13.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004924/0.5447, allocations: 2.925 MB / 0.4891 GB, free: 10.35 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003523/0.5451, allocations: 61.7 kB / 0.4892 GB, free: 10.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001689/0.5468, allocations: 2.365 MB / 0.4915 GB, free: 7.895 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008231/0.5476, allocations: 0.7741 MB / 0.4923 GB, free: 7.109 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001042/0.5487, allocations: 0.5137 MB / 0.4928 GB, free: 6.586 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.934e-05/0.5488, allocations: 309 kB / 0.4931 GB, free: 6.281 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002235/0.551, allocations: 1.267 MB / 0.4943 GB, free: 5.012 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002885/0.5539, allocations: 2.175 MB / 0.4964 GB, free: 2.438 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005368/0.5593, allocations: 3.664 MB / 0.5 GB, free: 14.38 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.241e-05/0.5594, allocations: 11.94 kB / 0.5 GB, free: 14.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007595/0.567, allocations: 4.466 MB / 0.5044 GB, free: 9.828 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.779e-05/0.567, allocations: 16 kB / 0.5044 GB, free: 9.812 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.326e-05/0.5671, allocations: 31.98 kB / 0.5044 GB, free: 9.781 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001262/0.5683, allocations: 0.5366 MB / 0.505 GB, free: 9.227 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002551/0.5709, allocations: 0.6864 MB / 0.5056 GB, free: 8.539 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009732/0.5807, allocations: 10.35 MB / 0.5157 GB, free: 13.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003036/0.5837, allocations: 175.7 kB / 0.5159 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005912/0.5843, allocations: 128 kB / 0.516 GB, free: 13.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (345): * Single equations (assignments): 338 * 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,11,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.00335/0.5877, allocations: 1.526 MB / 0.5175 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001156/0.5889, allocations: 320 kB / 0.5178 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007785/0.5967, allocations: 3.907 MB / 0.5216 GB, free: 7.34 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.769e-05/0.5967, allocations: 20 kB / 0.5217 GB, free: 7.32 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.452e-05/0.5967, allocations: 8 kB / 0.5217 GB, free: 7.312 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.818e-05/0.5968, allocations: 15.89 kB / 0.5217 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1785/0.7753, allocations: 8.515 MB / 0.53 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/0.7753, allocations: 8.078 kB / 0.53 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001759/0.7771, allocations: 378.6 kB / 0.5304 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00194/0.7791, allocations: 0.7494 MB / 0.5311 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001836/0.7792, allocations: 63.39 kB / 0.5312 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01258/0.7918, allocations: 16.76 MB / 0.5475 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.7919, allocations: 7.031 kB / 0.5475 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009421/0.8013, allocations: 5.572 MB / 0.553 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001891/0.8032, allocations: 0.6513 MB / 0.5536 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008928/0.8042, allocations: 52.41 kB / 0.5537 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002008/0.8062, allocations: 131.2 kB / 0.5538 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005159/0.8067, allocations: 170.6 kB / 0.5539 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002056/0.8069, allocations: 66.94 kB / 0.554 GB, free: 121.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004133/0.8111, allocations: 1.979 MB / 0.5559 GB, free: 120.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.8111, allocations: 1.375 kB / 0.5559 GB, free: 120.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004122/0.8152, allocations: 0.941 MB / 0.5569 GB, free: 120.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (182): * Single equations (assignments): 174 * 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,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008492/0.8237, allocations: 6.305 MB / 0.563 GB, free: 117.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009502/0.8332, allocations: 5.395 MB / 0.5683 GB, free: 115.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/0.8333, allocations: 0 / 0.5683 GB, free: 115.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003407/0.8367, allocations: 2.669 MB / 0.5709 GB, free: 113.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003863/0.8406, allocations: 0.863 MB / 0.5717 GB, free: 113.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05761/0.8982, allocations: 41.69 MB / 0.6125 GB, free: 71.35 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003341/0.9016, allocations: 3.305 MB / 0.6157 GB, free: 68.01 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00258/0.9042, allocations: 0.758 MB / 0.6164 GB, free: 67.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002026/0.9062, allocations: 1.952 MB / 0.6183 GB, free: 65.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.613e-06/0.9062, allocations: 0 / 0.6183 GB, free: 65.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.294/1.2, allocations: 83.02 MB / 0.6994 GB, free: 133.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/1.2, allocations: 274.3 kB / 0.6997 GB, free: 132.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.671/4.871, allocations: 2.656 kB / 0.6997 GB, free: 132.9 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches