Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.461/1.461, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 52.02 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1168, allocations: 53.33 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.2285/0.3453, allocations: 21.01 MB / 447.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01556/0.3608, allocations: 6.205 MB / 453.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005194/0.366, allocations: 172.6 kB / 453.7 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005454/0.3715, allocations: 1.427 MB / 455.1 MB, free: 9.422 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009029/0.3805, allocations: 1.97 MB / 457.1 MB, free: 8.129 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005362/0.3859, allocations: 1.273 MB / 458.4 MB, free: 7.328 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01212/0.398, allocations: 6.161 MB / 464.6 MB, free: 4.164 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00901/0.407, allocations: 3.817 MB / 468.4 MB, free: 2.254 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006284/0.4133, allocations: 2.92 MB / 471.3 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007414/0.4207, allocations: 3.565 MB / 474.9 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002676/0.4234, allocations: 0.7805 MB / 475.6 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004515/0.4279, allocations: 1.098 MB / 476.7 MB, free: 14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004323/0.4322, allocations: 1.958 MB / 478.7 MB, free: 12.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008563/0.4408, allocations: 3.364 MB / 482.1 MB, free: 9.082 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01611/0.4569, allocations: 10.39 MB / 492.4 MB, free: 14.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4569, allocations: 0 / 492.4 MB, free: 14.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4569, allocations: 4 kB / 492.4 MB, free: 14.65 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003494/0.4573, allocations: 0 / 492.4 MB, free: 14.65 MB / 398.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.02095/0.4782, allocations: 6.766 MB / 499.2 MB, free: 7.797 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.4783, allocations: 8.031 kB / 499.2 MB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002439/0.4807, allocations: 0.7046 MB / 499.9 MB, free: 7.074 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005777/0.4865, allocations: 1.028 MB / 0.4892 GB, free: 6.043 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008238/0.4947, allocations: 3.609 MB / 0.4927 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004654/0.4952, allocations: 390.8 kB / 0.4931 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001725/0.4969, allocations: 0.5037 MB / 0.4936 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01818/0.5151, allocations: 6.779 MB / 0.5002 GB, free: 10.62 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002129/0.5153, allocations: 21.36 kB / 0.5002 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001292/0.5166, allocations: 216 kB / 0.5004 GB, free: 10.39 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002976/0.5169, allocations: 238.2 kB / 0.5007 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01369/0.5306, allocations: 5.758 MB / 0.5063 GB, free: 4.395 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0445/0.5751, allocations: 21 MB / 0.5268 GB, free: 14.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01058/0.5857, allocations: 8.603 MB / 0.5352 GB, free: 5.332 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004109/0.5898, allocations: 2.05 MB / 0.5372 GB, free: 3.27 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01267/0.6024, allocations: 6.211 MB / 0.5433 GB, free: 12.86 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.602e-05/0.6025, allocations: 56.55 kB / 0.5433 GB, free: 12.79 MB / 462.1 MB Notification: Performance of pre-optimization done (n=205): time 3.587e-06/0.6025, allocations: 0 / 0.5433 GB, free: 12.79 MB / 462.1 MB Notification: Performance of matching and sorting (n=222): time 0.02307/0.6256, allocations: 10.47 MB / 0.5535 GB, free: 2.078 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.463e-05/0.6256, allocations: 81.41 kB / 0.5536 GB, free: 1.988 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005738/0.6314, allocations: 2.929 MB / 0.5565 GB, free: 15.05 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002804/0.6317, allocations: 61.7 kB / 0.5565 GB, free: 14.98 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002076/0.6337, allocations: 2.431 MB / 0.5589 GB, free: 12.54 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009169/0.6346, allocations: 0.8018 MB / 0.5597 GB, free: 11.73 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001065/0.6357, allocations: 0.5257 MB / 0.5602 GB, free: 11.19 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.6358, allocations: 305.1 kB / 0.5605 GB, free: 10.89 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002427/0.6383, allocations: 1.271 MB / 0.5617 GB, free: 9.617 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003155/0.6414, allocations: 2.175 MB / 0.5639 GB, free: 7.039 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005682/0.6471, allocations: 3.672 MB / 0.5675 GB, free: 2.973 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.462e-05/0.6471, allocations: 8 kB / 0.5675 GB, free: 2.965 MB / 478.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008598/0.6557, allocations: 4.471 MB / 0.5718 GB, free: 14.42 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.335e-05/0.6558, allocations: 20 kB / 0.5719 GB, free: 14.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.257e-05/0.6558, allocations: 28 kB / 0.5719 GB, free: 14.38 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001423/0.6572, allocations: 0.5294 MB / 0.5724 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002657/0.6599, allocations: 0.6825 MB / 0.5731 GB, free: 13.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/0.671, allocations: 10.36 MB / 0.5832 GB, free: 2.094 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003135/0.6741, allocations: 179.8 kB / 0.5833 GB, free: 1.918 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005644/0.6747, allocations: 128 kB / 0.5835 GB, free: 1.793 MB / 494.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.003644/0.6784, allocations: 1.516 MB / 0.585 GB, free: 272 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001069/0.6794, allocations: 341.9 kB / 0.5853 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008372/0.6878, allocations: 3.88 MB / 0.5891 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.309e-05/0.6878, allocations: 24 kB / 0.5891 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.891e-05/0.6879, allocations: 12 kB / 0.5891 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.977e-05/0.6879, allocations: 15.89 kB / 0.5891 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0182/0.7061, allocations: 8.491 MB / 0.5974 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/0.7061, allocations: 4 kB / 0.5974 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001704/0.7078, allocations: 376 kB / 0.5978 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002186/0.71, allocations: 0.7442 MB / 0.5985 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002361/0.7102, allocations: 63.97 kB / 0.5986 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01793/0.7282, allocations: 16.76 MB / 0.6149 GB, free: 148 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/0.7282, allocations: 7.938 kB / 0.6149 GB, free: 140 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2195/0.9476, allocations: 5.572 MB / 0.6204 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001504/0.9491, allocations: 0.6682 MB / 0.621 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004382/0.9496, allocations: 54.97 kB / 0.6211 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/0.9511, allocations: 132.9 kB / 0.6212 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004589/0.9516, allocations: 171.8 kB / 0.6214 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001529/0.9517, allocations: 66.83 kB / 0.6214 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003348/0.9551, allocations: 1.977 MB / 0.6234 GB, free: 156.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.9551, allocations: 0 / 0.6234 GB, free: 156.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00359/0.9587, allocations: 0.9423 MB / 0.6243 GB, free: 156.1 MB / 0.5137 GB 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.009434/0.9681, allocations: 6.287 MB / 0.6304 GB, free: 153.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009133/0.9772, allocations: 3.848 MB / 0.6342 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/0.9773, allocations: 3.812 kB / 0.6342 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004239/0.9815, allocations: 2.577 MB / 0.6367 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004176/0.9857, allocations: 0.8548 MB / 0.6375 GB, free: 149.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04801/1.034, allocations: 33.46 MB / 0.6702 GB, free: 128.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002585/1.036, allocations: 3.304 MB / 0.6734 GB, free: 125.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002241/1.038, allocations: 0.7543 MB / 0.6742 GB, free: 125.1 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0019/1.04, allocations: 1.952 MB / 0.6761 GB, free: 123.2 MB / 0.5137 GB Notification: Performance of SimCode: time 1.232e-06/1.04, allocations: 4 kB / 0.6761 GB, free: 123.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1394/1.18, allocations: 82.95 MB / 0.7571 GB, free: 40.95 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.1/17.28, allocations: 11.92 kB / 0.7571 GB, free: 40.93 MB / 0.5137 GB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 24.586359629174694]