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.001394/0.001394, allocations: 102.6 kB / 17.58 MB, free: 5.426 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.001535/0.001535, allocations: 191.9 kB / 18.51 MB, free: 4.508 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.397/1.397, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001484/0.001484, allocations: 59.92 kB / 280.8 MB, free: 3.051 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08243/0.08393, allocations: 46.63 MB / 327.4 MB, free: 4.352 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03664/0.1206, allocations: 40.02 MB / 367.4 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01966/0.1403, allocations: 10.55 MB / 378 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006545/0.1469, allocations: 259.1 kB / 378.2 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.185/0.3319, allocations: 8.532 MB / 386.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01287/0.3448, allocations: 3.641 MB / 390.4 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007505/0.3523, allocations: 2.39 MB / 392.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0186/0.3709, allocations: 13.32 MB / 406.1 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04176/0.4127, allocations: 25.45 MB / 431.6 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01696/0.4298, allocations: 7.013 MB / 438.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01418/0.444, allocations: 8.079 MB / 446.7 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005764/0.4498, allocations: 1.988 MB / 448.6 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008493/0.4583, allocations: 2.387 MB / 451 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00704/0.4654, allocations: 4.155 MB / 455.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01613/0.4816, allocations: 7.827 MB / 463 MB, free: 6.52 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03039/0.512, allocations: 26.26 MB / 489.3 MB, free: 12.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.949e-06/0.5121, allocations: 0 / 489.3 MB, free: 12.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5121, allocations: 0 / 489.3 MB, free: 12.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007639/0.5128, allocations: 0 / 489.3 MB, free: 12.73 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.04512/0.558, allocations: 15.63 MB / 0.4931 GB, free: 13.11 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.579e-05/0.5581, allocations: 12.03 kB / 0.4931 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007331/0.5654, allocations: 1.802 MB / 0.4948 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04899/0.6144, allocations: 9.089 MB / 0.5037 GB, free: 2.285 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0146/0.6291, allocations: 7.482 MB / 0.511 GB, free: 10.78 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007983/0.6299, allocations: 0.9465 MB / 0.5119 GB, free: 9.848 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003956/0.6338, allocations: 1.25 MB / 0.5132 GB, free: 8.613 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04446/0.6783, allocations: 20.15 MB / 0.5328 GB, free: 4.434 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004708/0.6788, allocations: 23.8 kB / 0.5329 GB, free: 4.41 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003844/0.6827, allocations: 0.5153 MB / 0.5334 GB, free: 3.91 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000736/0.6834, allocations: 0.7294 MB / 0.5341 GB, free: 3.18 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3255/1.009, allocations: 18.97 MB / 0.5526 GB, free: 136.9 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08919/1.098, allocations: 63.41 MB / 0.6145 GB, free: 86.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02936/1.128, allocations: 56.99 MB / 0.6702 GB, free: 22.83 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006156/1.134, allocations: 4.116 MB / 0.6742 GB, free: 18.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01676/1.151, allocations: 11.39 MB / 0.6853 GB, free: 7.289 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.045e-05/1.151, allocations: 73.3 kB / 0.6854 GB, free: 7.207 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 6.602e-06/1.151, allocations: 3.984 kB / 0.6854 GB, free: 7.203 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03523/1.186, allocations: 18.12 MB / 0.7031 GB, free: 4.953 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.439e-05/1.186, allocations: 90.47 kB / 0.7032 GB, free: 4.852 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1865/1.372, allocations: 5.46 MB / 0.7085 GB, free: 146.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009067/1.373, allocations: 89.8 kB / 0.7086 GB, free: 146.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00541/1.379, allocations: 5.882 MB / 0.7143 GB, free: 144.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001599/1.38, allocations: 1.376 MB / 0.7157 GB, free: 143.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00285/1.383, allocations: 1.517 MB / 0.7172 GB, free: 142.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.899e-05/1.383, allocations: 302.5 kB / 0.7174 GB, free: 142.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004896/1.388, allocations: 3.077 MB / 0.7205 GB, free: 141.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006662/1.395, allocations: 6.761 MB / 0.7271 GB, free: 135.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01019/1.405, allocations: 10.59 MB / 0.7374 GB, free: 127.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001211/1.405, allocations: 35.62 kB / 0.7374 GB, free: 127.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01689/1.422, allocations: 10.79 MB / 0.748 GB, free: 122.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.998e-05/1.422, allocations: 58.78 kB / 0.748 GB, free: 122.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002082/1.423, allocations: 129 kB / 0.7482 GB, free: 122.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002337/1.425, allocations: 0.9837 MB / 0.7491 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006163/1.431, allocations: 1.813 MB / 0.7509 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01061/1.442, allocations: 10.24 MB / 0.7609 GB, free: 115.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007102/1.449, allocations: 442.6 kB / 0.7613 GB, free: 115.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001743/1.451, allocations: 420.7 kB / 0.7617 GB, free: 115 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.009227/1.46, allocations: 4.456 MB / 0.7661 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001951/1.462, allocations: 0.548 MB / 0.7666 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01097/1.473, allocations: 6.519 MB / 0.773 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.408e-05/1.473, allocations: 36 kB / 0.773 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.271e-05/1.473, allocations: 16 kB / 0.773 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.335e-05/1.473, allocations: 22.64 kB / 0.773 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02796/1.501, allocations: 15.97 MB / 0.7886 GB, free: 93.67 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.449e-05/1.501, allocations: 8.062 kB / 0.7886 GB, free: 93.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003066/1.504, allocations: 0.7528 MB / 0.7894 GB, free: 92.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002006/1.506, allocations: 0.7924 MB / 0.7901 GB, free: 92.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003022/1.507, allocations: 91.72 kB / 0.7902 GB, free: 92.01 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008321/1.515, allocations: 9.351 MB / 0.7994 GB, free: 82.26 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/1.515, allocations: 8.094 kB / 0.7994 GB, free: 82.25 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01253/1.527, allocations: 9.523 MB / 0.8087 GB, free: 72.62 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002479/1.53, allocations: 1.072 MB / 0.8097 GB, free: 71.52 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001181/1.531, allocations: 72 kB / 0.8098 GB, free: 71.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002739/1.534, allocations: 219.8 kB / 0.81 GB, free: 71.23 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005521/1.534, allocations: 262.7 kB / 0.8102 GB, free: 70.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002277/1.535, allocations: 116 kB / 0.8103 GB, free: 70.86 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004818/1.54, allocations: 3.607 MB / 0.8139 GB, free: 67.28 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.2e-07/1.54, allocations: 0 / 0.8139 GB, free: 67.28 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008164/1.548, allocations: 1.979 MB / 0.8158 GB, free: 65.3 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.01332/1.561, allocations: 10.26 MB / 0.8258 GB, free: 54.95 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02726/1.588, allocations: 13.51 MB / 0.839 GB, free: 41.41 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/1.588, allocations: 3.938 kB / 0.839 GB, free: 41.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005242/1.594, allocations: 3.545 MB / 0.8425 GB, free: 37.79 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006809/1.601, allocations: 1.309 MB / 0.8438 GB, free: 36.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2554/1.856, allocations: 87.94 MB / 0.9296 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006385/1.862, allocations: 7.598 MB / 0.9371 GB, free: 101.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005865/1.868, allocations: 2.353 MB / 0.9394 GB, free: 98.77 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004439/1.873, allocations: 4.522 MB / 0.9438 GB, free: 94.24 MB / 462.1 MB Notification: Performance of SimCode: time 1.032e-06/1.873, allocations: 3.938 kB / 0.9438 GB, free: 94.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3688/2.241, allocations: 155.7 MB / 1.096 GB, free: 128.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.65/14.89, allocations: 11.95 kB / 1.096 GB, free: 128.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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