Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009742/0.0009747, allocations: 92.09 kB / 16.65 MB, free: 6.59 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.001023/0.001023, allocations: 182.6 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002678/0.0002678, allocations: 4 kB / 301.5 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1089, allocations: 50.42 MB / 352 MB, free: 3.586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.0209/0.1299, allocations: 19.18 MB / 371.1 MB, free: 324 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2211/0.351, allocations: 5.788 MB / 376.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004863/0.3559, allocations: 127.6 kB / 377.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0049/0.3608, allocations: 1.144 MB / 378.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007824/0.3687, allocations: 1.744 MB / 379.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004758/0.3735, allocations: 1.11 MB / 381 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01328/0.3868, allocations: 6.631 MB / 387.7 MB, free: 6.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00908/0.3959, allocations: 4.519 MB / 392.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005107/0.401, allocations: 2.025 MB / 394.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005569/0.4066, allocations: 2.765 MB / 397 MB, free: 2.219 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001714/0.4084, allocations: 321.4 kB / 397.3 MB, free: 2.219 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003658/0.412, allocations: 0.6222 MB / 397.9 MB, free: 2.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002479/0.4146, allocations: 1.374 MB / 399.3 MB, free: 1.117 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00613/0.4207, allocations: 2.759 MB / 402.1 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01333/0.4341, allocations: 9.637 MB / 411.7 MB, free: 5.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4341, allocations: 0 / 411.7 MB, free: 5.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.4341, allocations: 4 kB / 411.7 MB, free: 5.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003462/0.4345, allocations: 4 kB / 411.7 MB, free: 5.496 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.01591/0.4504, allocations: 5.535 MB / 417.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.4505, allocations: 12.03 kB / 417.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002498/0.453, allocations: 0.699 MB / 417.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00596/0.459, allocations: 1.008 MB / 419 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008671/0.4677, allocations: 3.443 MB / 422.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005882/0.4683, allocations: 401 kB / 422.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00169/0.47, allocations: 0.503 MB / 423.3 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01813/0.4882, allocations: 6.794 MB / 430.1 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002565/0.4885, allocations: 7.906 kB / 430.1 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001259/0.4897, allocations: 211.1 kB / 430.3 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002995/0.4901, allocations: 242.2 kB / 430.5 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01384/0.5039, allocations: 5.785 MB / 436.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04579/0.5497, allocations: 21.21 MB / 457.5 MB, free: 7.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009987/0.5598, allocations: 8.55 MB / 466.1 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00395/0.5638, allocations: 2.144 MB / 468.2 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01234/0.5762, allocations: 5.948 MB / 474.2 MB, free: 5.512 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.021e-05/0.5763, allocations: 52.56 kB / 474.2 MB, free: 5.453 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 6.152e-06/0.5763, allocations: 3.938 kB / 474.2 MB, free: 5.449 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.0237/0.6, allocations: 10.54 MB / 484.8 MB, free: 10.67 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.664e-05/0.6001, allocations: 81.33 kB / 484.8 MB, free: 10.58 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005766/0.6059, allocations: 2.896 MB / 487.7 MB, free: 7.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000322/0.6062, allocations: 61.7 kB / 487.8 MB, free: 7.605 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002007/0.6082, allocations: 2.366 MB / 490.2 MB, free: 5.223 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009157/0.6092, allocations: 0.7639 MB / 490.9 MB, free: 4.465 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004795/0.6097, allocations: 231.8 kB / 491.2 MB, free: 4.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.6098, allocations: 305.1 kB / 491.5 MB, free: 3.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002557/0.6123, allocations: 1.282 MB / 492.7 MB, free: 2.645 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003226/0.6156, allocations: 2.191 MB / 494.9 MB, free: 56 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005765/0.6214, allocations: 3.703 MB / 498.6 MB, free: 11.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-05/0.6214, allocations: 8 kB / 498.6 MB, free: 11.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008655/0.6301, allocations: 4.473 MB / 0.4913 GB, free: 7.402 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.817e-05/0.6302, allocations: 24.52 kB / 0.4913 GB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.505e-05/0.6302, allocations: 28 kB / 0.4914 GB, free: 7.352 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001328/0.6316, allocations: 0.5128 MB / 0.4919 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002647/0.6342, allocations: 0.6981 MB / 0.4926 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009251/0.6435, allocations: 9.343 MB / 0.5017 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002935/0.6465, allocations: 175.8 kB / 0.5018 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005249/0.647, allocations: 128 kB / 0.502 GB, free: 11.81 MB / 430.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.003575/0.6506, allocations: 1.524 MB / 0.5035 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009844/0.6516, allocations: 316.1 kB / 0.5038 GB, free: 9.961 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007816/0.6594, allocations: 3.911 MB / 0.5076 GB, free: 5.953 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.389e-05/0.6595, allocations: 24 kB / 0.5076 GB, free: 5.93 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.224e-05/0.6595, allocations: 8 kB / 0.5076 GB, free: 5.922 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-05/0.6596, allocations: 7.969 kB / 0.5076 GB, free: 5.914 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01717/0.6767, allocations: 8.513 MB / 0.5159 GB, free: 13.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/0.6768, allocations: 4 kB / 0.5159 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001726/0.6785, allocations: 392 kB / 0.5163 GB, free: 12.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002052/0.6806, allocations: 0.7197 MB / 0.517 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002409/0.6809, allocations: 59.97 kB / 0.5171 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2153/0.8961, allocations: 15.23 MB / 0.5319 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.8962, allocations: 7.75 kB / 0.532 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01051/0.9067, allocations: 5.599 MB / 0.5374 GB, free: 137.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00161/0.9084, allocations: 0.6616 MB / 0.5381 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004314/0.9088, allocations: 57.47 kB / 0.5381 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001565/0.9104, allocations: 144.5 kB / 0.5383 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004822/0.9109, allocations: 167.7 kB / 0.5384 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/0.911, allocations: 67.39 kB / 0.5385 GB, free: 136.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003293/0.9143, allocations: 1.967 MB / 0.5404 GB, free: 136 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.9143, allocations: 0 / 0.5404 GB, free: 136 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003782/0.9181, allocations: 0.9332 MB / 0.5413 GB, free: 135.9 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 (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.009409/0.9275, allocations: 6.303 MB / 0.5475 GB, free: 132.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006363/0.9339, allocations: 3.983 MB / 0.5514 GB, free: 131 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/0.934, allocations: 3.938 kB / 0.5514 GB, free: 131 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004207/0.9382, allocations: 2.677 MB / 0.554 GB, free: 129.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005931/0.9441, allocations: 0.8051 MB / 0.5548 GB, free: 129.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06165/1.006, allocations: 41.9 MB / 0.5957 GB, free: 91.75 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00266/1.009, allocations: 3.294 MB / 0.5989 GB, free: 88.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002558/1.011, allocations: 0.7617 MB / 0.5996 GB, free: 87.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001969/1.013, allocations: 1.943 MB / 0.6015 GB, free: 85.72 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/1.013, allocations: 0 / 0.6015 GB, free: 85.72 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1483/1.161, allocations: 79.69 MB / 0.6794 GB, free: 6.73 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002297/1.162, allocations: 277 kB / 0.6796 GB, free: 6.371 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.032/5.194, allocations: 4 kB / 0.6796 GB, free: 6.367 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches