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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 112.1 kB / 17.28 MB, free: 6.219 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.001753/0.001753, allocations: 189.3 kB / 18.2 MB, free: 5.301 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.471/1.471, allocations: 205.1 MB / 224.1 MB, free: 12.45 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.001173/0.001173, allocations: 47.94 kB / 280.3 MB, free: 3.395 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09977/0.101, allocations: 46.63 MB / 326.9 MB, free: 4.691 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02525/0.1262, allocations: 21.39 MB / 348.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01509/0.1414, allocations: 6.329 MB / 354.6 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004867/0.1463, allocations: 119.4 kB / 354.7 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005203/0.1516, allocations: 1.274 MB / 356 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006926/0.1585, allocations: 1.834 MB / 357.8 MB, free: 5.609 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00365/0.1622, allocations: 1.193 MB / 359 MB, free: 4.414 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009856/0.1721, allocations: 6.609 MB / 365.6 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009049/0.1811, allocations: 5.523 MB / 371.1 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00485/0.186, allocations: 2.901 MB / 374 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005339/0.1914, allocations: 3.584 MB / 377.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001396/0.1928, allocations: 0.8164 MB / 378.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1959/0.3887, allocations: 1.099 MB / 379.5 MB, free: 21.83 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003088/0.3919, allocations: 2.017 MB / 381.6 MB, free: 21.83 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00767/0.3996, allocations: 3.535 MB / 385.1 MB, free: 21.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01305/0.4126, allocations: 10.66 MB / 395.8 MB, free: 19.94 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.4127, allocations: 1.906 kB / 395.8 MB, free: 19.94 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4127, allocations: 0 / 395.8 MB, free: 19.94 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003131/0.413, allocations: 0 / 395.8 MB, free: 19.94 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.02031/0.4333, allocations: 6.919 MB / 402.7 MB, free: 16.06 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.4334, allocations: 9.625 kB / 402.7 MB, free: 16.06 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001181/0.4346, allocations: 0.7283 MB / 403.4 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004777/0.4394, allocations: 1.068 MB / 404.5 MB, free: 15 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00543/0.4448, allocations: 3.448 MB / 407.9 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002586/0.4451, allocations: 414.9 kB / 408.3 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006926/0.4458, allocations: 0.5195 MB / 408.9 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01101/0.4568, allocations: 7.054 MB / 415.9 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001241/0.457, allocations: 15.02 kB / 415.9 MB, free: 8.246 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004715/0.4574, allocations: 217 kB / 416.1 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001957/0.4576, allocations: 265.2 kB / 416.4 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008591/0.4662, allocations: 5.935 MB / 422.3 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03359/0.4998, allocations: 22.43 MB / 444.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008062/0.5079, allocations: 8.275 MB / 453 MB, free: 4.633 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003484/0.5115, allocations: 2.184 MB / 455.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0116/0.5231, allocations: 6.188 MB / 461.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.116e-05/0.5232, allocations: 56.56 kB / 461.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=220): time 4.118e-06/0.5232, allocations: 0 / 461.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=240): time 0.02288/0.5461, allocations: 11.15 MB / 472.6 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.5462, allocations: 81.41 kB / 472.7 MB, free: 0.707 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004963/0.5512, allocations: 3.148 MB / 475.9 MB, free: 13.56 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000194/0.5514, allocations: 69.7 kB / 475.9 MB, free: 13.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001707/0.5531, allocations: 2.499 MB / 478.4 MB, free: 10.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006744/0.5538, allocations: 0.8289 MB / 479.2 MB, free: 10.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008637/0.5546, allocations: 0.5575 MB / 479.8 MB, free: 9.578 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.5548, allocations: 305.1 kB / 480.1 MB, free: 9.277 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002007/0.5568, allocations: 1.334 MB / 481.4 MB, free: 7.941 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002766/0.5595, allocations: 2.346 MB / 483.8 MB, free: 5.168 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004968/0.5645, allocations: 3.922 MB / 487.7 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.59e-05/0.5645, allocations: 8 kB / 487.7 MB, free: 0.8945 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007649/0.5722, allocations: 4.697 MB / 492.4 MB, free: 12.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.5723, allocations: 26.41 kB / 492.4 MB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.631e-05/0.5723, allocations: 32 kB / 492.5 MB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001202/0.5735, allocations: 0.5216 MB / 493 MB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002802/0.5763, allocations: 0.7545 MB / 493.7 MB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009276/0.5856, allocations: 10.29 MB / 0.4922 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003312/0.589, allocations: 187 kB / 0.4924 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002707/0.5892, allocations: 140 kB / 0.4925 GB, free: 15.75 MB / 414.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.00337/0.5926, allocations: 1.574 MB / 0.4941 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008483/0.5935, allocations: 343.8 kB / 0.4944 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006628/0.6001, allocations: 4.059 MB / 0.4984 GB, free: 9.75 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.917e-05/0.6001, allocations: 20 kB / 0.4984 GB, free: 9.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.6002, allocations: 8 kB / 0.4984 GB, free: 9.723 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.31e-05/0.6002, allocations: 15.95 kB / 0.4984 GB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01473/0.6149, allocations: 8.972 MB / 0.5072 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.415e-05/0.615, allocations: 8 kB / 0.5072 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/0.6167, allocations: 413.4 kB / 0.5076 GB, free: 268 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001922/0.6186, allocations: 0.7352 MB / 0.5083 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000182/0.6188, allocations: 67.97 kB / 0.5083 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01467/0.6335, allocations: 16.74 MB / 0.5247 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.6335, allocations: 6.625 kB / 0.5247 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009335/0.6429, allocations: 5.844 MB / 0.5304 GB, free: 7.684 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002175/0.6451, allocations: 0.6959 MB / 0.5311 GB, free: 6.965 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005358/0.6456, allocations: 63.92 kB / 0.5312 GB, free: 6.902 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001591/0.6472, allocations: 139.9 kB / 0.5313 GB, free: 6.766 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004528/0.6477, allocations: 183.3 kB / 0.5315 GB, free: 6.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/0.6478, allocations: 67.98 kB / 0.5315 GB, free: 6.523 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003186/0.651, allocations: 2.127 MB / 0.5336 GB, free: 4.406 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.651, allocations: 0 / 0.5336 GB, free: 4.406 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003669/0.6547, allocations: 0.9885 MB / 0.5346 GB, free: 3.418 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.2069/0.8616, allocations: 6.55 MB / 0.541 GB, free: 155.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.012/0.8737, allocations: 5.719 MB / 0.5466 GB, free: 154.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/0.8737, allocations: 1.906 kB / 0.5466 GB, free: 154.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003684/0.8774, allocations: 2.755 MB / 0.5492 GB, free: 153.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005231/0.8827, allocations: 0.9534 MB / 0.5502 GB, free: 153.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07418/0.9569, allocations: 45.29 MB / 0.5944 GB, free: 115.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002729/0.9596, allocations: 3.406 MB / 0.5977 GB, free: 112.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002863/0.9625, allocations: 0.8151 MB / 0.5985 GB, free: 111.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002286/0.9648, allocations: 2.1 MB / 0.6006 GB, free: 109.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.322e-06/0.9648, allocations: 4 kB / 0.6006 GB, free: 109.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1453/1.11, allocations: 89.09 MB / 0.6876 GB, free: 20.45 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002273/1.11, allocations: 242.2 kB / 0.6878 GB, free: 20.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.25/5.36, allocations: 4.062 kB / 0.6878 GB, free: 20.2 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > 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","../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