Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_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.0009463/0.000947, allocations: 101.4 kB / 17.31 MB, free: 6.344 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.0009398/0.00094, allocations: 182.5 kB / 18.21 MB, free: 5.527 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.36/1.36, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.000456/0.000456, allocations: 12 kB / 281.5 MB, free: 3.309 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09027/0.09074, allocations: 47.58 MB / 329.1 MB, free: 3.656 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01822/0.109, allocations: 19.13 MB / 348.2 MB, free: 448 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01081/0.1199, allocations: 5.827 MB / 354 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002837/0.1227, allocations: 115.4 kB / 354.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003496/0.1263, allocations: 1.142 MB / 355.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006152/0.1324, allocations: 1.725 MB / 357 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003652/0.1361, allocations: 1.123 MB / 358.1 MB, free: 6.465 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009258/0.1454, allocations: 6.641 MB / 364.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006333/0.1517, allocations: 4.44 MB / 369.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003654/0.1554, allocations: 2.034 MB / 371.2 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00396/0.1594, allocations: 2.773 MB / 374 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000832/0.1603, allocations: 328 kB / 374.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001881/0.1622, allocations: 0.6284 MB / 375 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001333/0.1635, allocations: 1.378 MB / 376.3 MB, free: 4.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00332/0.1668, allocations: 2.757 MB / 379.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2214/0.3882, allocations: 9.626 MB / 388.7 MB, free: 23.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.3883, allocations: 0 / 388.7 MB, free: 23.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.3883, allocations: 0 / 388.7 MB, free: 23.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003481/0.3887, allocations: 1.125 kB / 388.7 MB, free: 23.58 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01631/0.405, allocations: 5.532 MB / 394.3 MB, free: 20.56 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.405, allocations: 13.52 kB / 394.3 MB, free: 20.55 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001714/0.4068, allocations: 0.6991 MB / 395 MB, free: 20.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00485/0.4116, allocations: 1.014 MB / 396 MB, free: 19.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008863/0.4205, allocations: 3.275 MB / 399.3 MB, free: 18.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006117/0.4212, allocations: 397.6 kB / 399.7 MB, free: 18.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002481/0.4237, allocations: 0.5072 MB / 400.2 MB, free: 18.72 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01643/0.4401, allocations: 6.782 MB / 406.9 MB, free: 17.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001231/0.4403, allocations: 15.83 kB / 407 MB, free: 17.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000507/0.4408, allocations: 210.1 kB / 407.2 MB, free: 17.17 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002301/0.441, allocations: 241.7 kB / 407.4 MB, free: 17.15 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01113/0.4522, allocations: 5.766 MB / 413.2 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03223/0.4844, allocations: 21.21 MB / 434.4 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008932/0.4934, allocations: 8.566 MB / 442.9 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003533/0.497, allocations: 2.128 MB / 445.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01051/0.5075, allocations: 5.955 MB / 451 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.589e-05/0.5076, allocations: 60.56 kB / 451.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 3.517e-06/0.5076, allocations: 2.406 kB / 451.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.02109/0.5287, allocations: 10.41 MB / 461.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.5288, allocations: 79.92 kB / 461.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005226/0.534, allocations: 2.9 MB / 464.5 MB, free: 10.6 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002233/0.5343, allocations: 65.7 kB / 464.5 MB, free: 10.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001517/0.5358, allocations: 2.354 MB / 466.9 MB, free: 8.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006419/0.5364, allocations: 0.7664 MB / 467.7 MB, free: 7.398 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003159/0.5368, allocations: 231.8 kB / 467.9 MB, free: 7.164 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.132e-05/0.5369, allocations: 301.1 kB / 468.2 MB, free: 6.867 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001996/0.5389, allocations: 1.286 MB / 469.5 MB, free: 5.578 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002552/0.5414, allocations: 2.196 MB / 471.7 MB, free: 3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004828/0.5463, allocations: 3.699 MB / 475.4 MB, free: 15.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.561e-05/0.5463, allocations: 8 kB / 475.4 MB, free: 15.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007108/0.5534, allocations: 4.474 MB / 479.8 MB, free: 10.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.5535, allocations: 16 kB / 479.8 MB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.012e-05/0.5535, allocations: 28 kB / 479.9 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.5547, allocations: 0.5183 MB / 480.4 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002448/0.5571, allocations: 0.6987 MB / 481.1 MB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008093/0.5652, allocations: 9.344 MB / 490.4 MB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003433/0.5687, allocations: 179.8 kB / 490.6 MB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002963/0.569, allocations: 128 kB / 490.7 MB, free: 15.17 MB / 398.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 (348): * Single equations (assignments): 341 * 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,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.003186/0.5722, allocations: 1.524 MB / 492.3 MB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007274/0.573, allocations: 318.5 kB / 492.6 MB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006582/0.5796, allocations: 3.909 MB / 496.5 MB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-05/0.5796, allocations: 24 kB / 496.5 MB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.5796, allocations: 8 kB / 496.5 MB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.993e-05/0.5796, allocations: 11.95 kB / 496.5 MB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01424/0.5939, allocations: 8.522 MB / 0.4932 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.339e-05/0.5939, allocations: 8.453 kB / 0.4932 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001621/0.5956, allocations: 381.2 kB / 0.4936 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001904/0.5975, allocations: 0.7215 MB / 0.4943 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000185/0.5977, allocations: 63.97 kB / 0.4943 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01359/0.6113, allocations: 15.22 MB / 0.5092 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/0.6113, allocations: 4 kB / 0.5092 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009112/0.6205, allocations: 5.596 MB / 0.5147 GB, free: 9.664 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001747/0.6222, allocations: 0.661 MB / 0.5153 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005273/0.6228, allocations: 63.92 kB / 0.5154 GB, free: 8.918 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001642/0.6244, allocations: 139.9 kB / 0.5155 GB, free: 8.781 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004233/0.6249, allocations: 171.5 kB / 0.5157 GB, free: 8.617 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001391/0.625, allocations: 63.98 kB / 0.5157 GB, free: 8.555 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003168/0.6282, allocations: 1.968 MB / 0.5177 GB, free: 6.59 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6282, allocations: 0 / 0.5177 GB, free: 6.59 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003609/0.6318, allocations: 0.9376 MB / 0.5186 GB, free: 5.652 MB / 430.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 (185): * Single equations (assignments): 177 * 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,3,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.008977/0.6408, allocations: 6.288 MB / 0.5247 GB, free: 15.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006412/0.6472, allocations: 3.987 MB / 0.5286 GB, free: 11.28 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.6473, allocations: 4 kB / 0.5286 GB, free: 11.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00415/0.6514, allocations: 2.662 MB / 0.5312 GB, free: 8.555 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00603/0.6575, allocations: 0.8049 MB / 0.532 GB, free: 7.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2886/0.9461, allocations: 41.94 MB / 0.573 GB, free: 144.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003105/0.9493, allocations: 3.295 MB / 0.5762 GB, free: 141.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003069/0.9524, allocations: 0.7614 MB / 0.5769 GB, free: 140.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002439/0.9548, allocations: 1.94 MB / 0.5788 GB, free: 138.9 MB / 446.1 MB Notification: Performance of SimCode: time 2.284e-06/0.9548, allocations: 0 / 0.5788 GB, free: 138.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1124/1.067, allocations: 79.72 MB / 0.6567 GB, free: 59.13 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001656/1.067, allocations: 251.9 kB / 0.6569 GB, free: 58.87 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.695/4.762, allocations: 0 / 0.6569 GB, free: 58.87 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches