Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",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.001288/0.001288, allocations: 114.5 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.001415/0.001414, 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.327/1.327, allocations: 205.1 MB / 224.1 MB, free: 12.36 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.00142/0.00142, allocations: 52.14 kB / 280.3 MB, free: 3.355 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1039, allocations: 46.63 MB / 326.9 MB, free: 4.652 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04549/0.1494, allocations: 39.29 MB / 366.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02984/0.1793, allocations: 10.39 MB / 376.6 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009678/0.1891, allocations: 255.1 kB / 376.8 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2359/0.425, allocations: 8.001 MB / 384.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01619/0.4412, allocations: 3.28 MB / 388.1 MB, free: 11.08 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008367/0.4496, allocations: 2.211 MB / 390.3 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02328/0.4729, allocations: 13.42 MB / 403.8 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0548/0.5278, allocations: 28.84 MB / 432.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01616/0.544, allocations: 7.027 MB / 439.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01354/0.5576, allocations: 8.125 MB / 447.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005778/0.5634, allocations: 1.992 MB / 449.7 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00923/0.5727, allocations: 2.389 MB / 452.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007254/0.58, allocations: 4.161 MB / 456.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01635/0.5964, allocations: 7.825 MB / 464.1 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03531/0.6318, allocations: 26.24 MB / 490.4 MB, free: 11.17 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.495e-06/0.6318, allocations: 0 / 490.4 MB, free: 11.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.6318, allocations: 0 / 490.4 MB, free: 11.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0008677/0.6327, allocations: 0 / 490.4 MB, free: 11.17 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.05749/0.6902, allocations: 15.62 MB / 0.4941 GB, free: 11.54 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.187e-05/0.6903, allocations: 11.97 kB / 0.4941 GB, free: 11.53 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008769/0.6991, allocations: 1.806 MB / 0.4959 GB, free: 9.727 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05157/0.7507, allocations: 9.088 MB / 0.5048 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01926/0.77, allocations: 7.461 MB / 0.5121 GB, free: 9.238 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001293/0.7713, allocations: 0.9524 MB / 0.513 GB, free: 8.297 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006097/0.7774, allocations: 1.243 MB / 0.5142 GB, free: 7.066 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05825/0.8357, allocations: 20.16 MB / 0.5339 GB, free: 2.875 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008263/0.8366, allocations: 19.81 kB / 0.5339 GB, free: 2.855 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005366/0.842, allocations: 0.51 MB / 0.5344 GB, free: 2.359 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009911/0.843, allocations: 0.7333 MB / 0.5351 GB, free: 1.625 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3553/1.198, allocations: 18.97 MB / 0.5536 GB, free: 137.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1118/1.31, allocations: 63.4 MB / 0.6156 GB, free: 85.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02933/1.34, allocations: 56.99 MB / 0.6712 GB, free: 21.52 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005683/1.345, allocations: 4.121 MB / 0.6752 GB, free: 17.38 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01811/1.363, allocations: 11.39 MB / 0.6864 GB, free: 5.965 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/1.363, allocations: 73.25 kB / 0.6864 GB, free: 5.883 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 5.09e-06/1.364, allocations: 4 kB / 0.6864 GB, free: 5.879 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03874/1.402, allocations: 18.12 MB / 0.7041 GB, free: 3.633 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.792e-05/1.402, allocations: 94.47 kB / 0.7042 GB, free: 3.527 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1967/1.599, allocations: 5.463 MB / 0.7096 GB, free: 147.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008467/1.6, allocations: 90.55 kB / 0.7096 GB, free: 147.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004757/1.605, allocations: 5.88 MB / 0.7154 GB, free: 144.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001822/1.607, allocations: 1.377 MB / 0.7167 GB, free: 143.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003932/1.611, allocations: 1.511 MB / 0.7182 GB, free: 142.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.669e-05/1.611, allocations: 301.9 kB / 0.7185 GB, free: 142.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005166/1.616, allocations: 3.08 MB / 0.7215 GB, free: 141.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006514/1.622, allocations: 6.757 MB / 0.7281 GB, free: 135.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01039/1.633, allocations: 10.58 MB / 0.7384 GB, free: 127.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001035/1.633, allocations: 39.59 kB / 0.7385 GB, free: 127.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01577/1.649, allocations: 10.79 MB / 0.749 GB, free: 122.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.76e-05/1.649, allocations: 58.44 kB / 0.7491 GB, free: 122.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000263/1.649, allocations: 133.1 kB / 0.7492 GB, free: 122.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002412/1.651, allocations: 0.9873 MB / 0.7502 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005729/1.657, allocations: 1.813 MB / 0.7519 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009616/1.667, allocations: 10.24 MB / 0.7619 GB, free: 115.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007044/1.674, allocations: 439 kB / 0.7623 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001313/1.675, allocations: 423.2 kB / 0.7628 GB, free: 115.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008775/1.684, allocations: 4.451 MB / 0.7671 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00152/1.686, allocations: 0.5516 MB / 0.7676 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009302/1.695, allocations: 6.52 MB / 0.774 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.148e-05/1.695, allocations: 42.81 kB / 0.774 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/1.695, allocations: 8 kB / 0.7741 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-05/1.695, allocations: 22.7 kB / 0.7741 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02492/1.72, allocations: 15.97 MB / 0.7897 GB, free: 92.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.555e-05/1.72, allocations: 4 kB / 0.7897 GB, free: 92.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002962/1.723, allocations: 0.7532 MB / 0.7904 GB, free: 91.76 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00193/1.725, allocations: 0.7963 MB / 0.7912 GB, free: 90.95 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002852/1.725, allocations: 83.98 kB / 0.7913 GB, free: 90.87 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008059/1.733, allocations: 9.358 MB / 0.8004 GB, free: 81.11 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/1.733, allocations: 1.641 kB / 0.8004 GB, free: 81.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01193/1.745, allocations: 9.532 MB / 0.8097 GB, free: 71.46 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002961/1.748, allocations: 1.064 MB / 0.8108 GB, free: 70.38 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001038/1.749, allocations: 75.98 kB / 0.8108 GB, free: 70.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002434/1.752, allocations: 219.8 kB / 0.811 GB, free: 70.09 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005807/1.752, allocations: 266.7 kB / 0.8113 GB, free: 69.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002289/1.753, allocations: 108 kB / 0.8114 GB, free: 69.72 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005285/1.758, allocations: 3.603 MB / 0.8149 GB, free: 66.14 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/1.758, allocations: 0 / 0.8149 GB, free: 66.14 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00779/1.766, allocations: 1.987 MB / 0.8169 GB, free: 64.16 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01241/1.778, allocations: 10.24 MB / 0.8269 GB, free: 53.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02501/1.803, allocations: 13.51 MB / 0.8401 GB, free: 40.26 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.667e-06/1.803, allocations: 0 / 0.8401 GB, free: 40.26 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00448/1.808, allocations: 3.546 MB / 0.8435 GB, free: 36.64 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006242/1.814, allocations: 1.313 MB / 0.8448 GB, free: 35.35 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3082/2.122, allocations: 93 MB / 0.9356 GB, free: 93.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01391/2.136, allocations: 7.599 MB / 0.943 GB, free: 89.46 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007507/2.144, allocations: 2.354 MB / 0.9453 GB, free: 87.12 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006074/2.15, allocations: 4.523 MB / 0.9498 GB, free: 82.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.523e-06/2.15, allocations: 0 / 0.9498 GB, free: 82.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3726/2.522, allocations: 155.6 MB / 1.102 GB, free: 117.6 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000148/2.523, allocations: 300.6 kB / 1.102 GB, free: 117.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.578/8.101, allocations: 0 / 1.102 GB, free: 117.2 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches