Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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.001508/0.001508, allocations: 109.1 kB / 16.62 MB, free: 6.961 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.00171/0.00171, allocations: 189.8 kB / 17.55 MB, free: 6.066 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.345/1.345, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 55.25 kB / 300.3 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.103, allocations: 49.44 MB / 349.7 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2987/0.4016, allocations: 38.71 MB / 388.4 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02612/0.4278, allocations: 10.25 MB / 398.7 MB, free: 15.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01256/0.4404, allocations: 291.9 kB / 399 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02187/0.4624, allocations: 8.001 MB / 407 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01578/0.4782, allocations: 3.059 MB / 410 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008805/0.487, allocations: 2.146 MB / 412.2 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02085/0.5079, allocations: 12.88 MB / 425 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04243/0.5504, allocations: 28.64 MB / 453.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01425/0.5647, allocations: 6.79 MB / 460.5 MB, free: 7.227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01515/0.5799, allocations: 7.779 MB / 468.2 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006387/0.5863, allocations: 1.953 MB / 470.2 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009442/0.5958, allocations: 2.347 MB / 472.5 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007551/0.6034, allocations: 3.955 MB / 476.5 MB, free: 7.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01522/0.6186, allocations: 7.56 MB / 484.1 MB, free: 15.56 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03284/0.6515, allocations: 25.68 MB / 0.4978 GB, free: 5.812 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.167e-05/0.6516, allocations: 4 kB / 0.4978 GB, free: 5.809 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.6516, allocations: 0 / 0.4978 GB, free: 5.809 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0008637/0.6524, allocations: 0 / 0.4978 GB, free: 5.809 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.05252/0.705, allocations: 15.03 MB / 0.5125 GB, free: 6.664 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.7051, allocations: 8.031 kB / 0.5125 GB, free: 6.656 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007104/0.7122, allocations: 1.719 MB / 0.5142 GB, free: 4.926 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5643/1.277, allocations: 6.119 MB / 0.5201 GB, free: 118.7 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02327/1.3, allocations: 7.79 MB / 0.5277 GB, free: 115.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001283/1.301, allocations: 0.9122 MB / 0.5286 GB, free: 115.1 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006113/1.307, allocations: 1.196 MB / 0.5298 GB, free: 114.7 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04748/1.355, allocations: 18.67 MB / 0.548 GB, free: 106.8 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003217/1.355, allocations: 24.45 kB / 0.5481 GB, free: 106.8 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001905/1.357, allocations: 0.4941 MB / 0.5485 GB, free: 106.4 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006645/1.358, allocations: 0.6364 MB / 0.5492 GB, free: 106.3 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02835/1.386, allocations: 16.76 MB / 0.5655 GB, free: 91.74 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08975/1.476, allocations: 58.86 MB / 0.623 GB, free: 31.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02171/1.498, allocations: 32.88 MB / 0.6551 GB, free: 11.13 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006615/1.504, allocations: 3.73 MB / 0.6588 GB, free: 7.395 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01763/1.522, allocations: 8.663 MB / 0.6672 GB, free: 14.74 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.611e-05/1.522, allocations: 73.31 kB / 0.6673 GB, free: 14.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=349): time 4.558e-06/1.522, allocations: 0 / 0.6673 GB, free: 14.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=389): time 0.03444/1.556, allocations: 17.56 MB / 0.6844 GB, free: 12.95 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.635e-05/1.557, allocations: 90.47 kB / 0.6845 GB, free: 12.85 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008189/1.565, allocations: 5.013 MB / 0.6894 GB, free: 7.844 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003822/1.565, allocations: 89.7 kB / 0.6895 GB, free: 7.75 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003507/1.569, allocations: 5.445 MB / 0.6948 GB, free: 2.27 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001456/1.57, allocations: 1.356 MB / 0.6961 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2377/1.808, allocations: 1.315 MB / 0.6974 GB, free: 150.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.208e-05/1.808, allocations: 305.8 kB / 0.6977 GB, free: 150.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006039/1.814, allocations: 2.907 MB / 0.7006 GB, free: 150.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007592/1.822, allocations: 5.873 MB / 0.7063 GB, free: 145.6 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01453/1.836, allocations: 9.438 MB / 0.7155 GB, free: 138.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002042/1.836, allocations: 27.53 kB / 0.7155 GB, free: 138.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01863/1.855, allocations: 9.844 MB / 0.7252 GB, free: 134.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.759e-05/1.855, allocations: 51 kB / 0.7252 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001513/1.855, allocations: 102.5 kB / 0.7253 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002264/1.858, allocations: 0.9435 MB / 0.7262 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00514/1.863, allocations: 1.59 MB / 0.7278 GB, free: 134.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009649/1.872, allocations: 10.19 MB / 0.7377 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006068/1.878, allocations: 412.3 kB / 0.7381 GB, free: 127.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001201/1.88, allocations: 344.6 kB / 0.7384 GB, free: 127.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007294/1.887, allocations: 4.251 MB / 0.7426 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001163/1.888, allocations: 0.5149 MB / 0.7431 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009063/1.897, allocations: 6.477 MB / 0.7494 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.785e-05/1.897, allocations: 40.97 kB / 0.7495 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-05/1.897, allocations: 13.47 kB / 0.7495 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.325e-05/1.897, allocations: 19.92 kB / 0.7495 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02109/1.918, allocations: 15.72 MB / 0.7649 GB, free: 110.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/1.919, allocations: 0 / 0.7649 GB, free: 110.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002886/1.921, allocations: 0.7493 MB / 0.7656 GB, free: 109.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001941/1.923, allocations: 0.7956 MB / 0.7664 GB, free: 109.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002476/1.924, allocations: 87.97 kB / 0.7664 GB, free: 109 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008106/1.932, allocations: 9.352 MB / 0.7756 GB, free: 99.32 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/1.932, allocations: 0 / 0.7756 GB, free: 99.32 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01209/1.944, allocations: 9.502 MB / 0.7849 GB, free: 89.98 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002198/1.946, allocations: 1.051 MB / 0.7859 GB, free: 88.96 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007694/1.947, allocations: 75.98 kB / 0.786 GB, free: 88.89 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002144/1.949, allocations: 219.8 kB / 0.7862 GB, free: 88.68 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005363/1.95, allocations: 262.7 kB / 0.7864 GB, free: 88.42 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002276/1.95, allocations: 112 kB / 0.7865 GB, free: 88.31 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004088/1.954, allocations: 3.346 MB / 0.7898 GB, free: 84.98 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.11e-07/1.954, allocations: 0 / 0.7898 GB, free: 84.98 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006943/1.961, allocations: 1.887 MB / 0.7916 GB, free: 83.09 MB / 478.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%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.013/1.974, allocations: 10.21 MB / 0.8016 GB, free: 72.77 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02566/2, allocations: 13.12 MB / 0.8144 GB, free: 59.62 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/2, allocations: 0 / 0.8144 GB, free: 59.62 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004334/2.004, allocations: 3.558 MB / 0.8179 GB, free: 55.99 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005547/2.01, allocations: 1.288 MB / 0.8191 GB, free: 54.73 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2916/2.301, allocations: 85.39 MB / 0.9025 GB, free: 140.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006776/2.308, allocations: 7.317 MB / 0.9097 GB, free: 137.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005795/2.314, allocations: 2.144 MB / 0.9118 GB, free: 137.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00574/2.32, allocations: 4.331 MB / 0.916 GB, free: 133.6 MB / 494.1 MB Notification: Performance of SimCode: time 7.61e-07/2.32, allocations: 0 / 0.916 GB, free: 133.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4394/2.759, allocations: 149.3 MB / 1.062 GB, free: 130.2 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/2.759, allocations: 293.1 kB / 1.062 GB, free: 129.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.066/7.825, allocations: 3.688 kB / 1.062 GB, free: 129.9 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches