Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001398/0.001398, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001423/0.001424, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.54/1.54, allocations: 227.7 MB / 247.7 MB, free: 10.34 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 63.03 kB / 307.9 MB, free: 468 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1105, allocations: 50.53 MB / 358.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2188/0.3294, allocations: 40.07 MB / 398.5 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02849/0.3579, allocations: 10.66 MB / 409.2 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0109/0.3689, allocations: 307 kB / 409.5 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02237/0.3913, allocations: 8.518 MB / 418 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01553/0.4069, allocations: 3.405 MB / 421.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008419/0.4153, allocations: 2.367 MB / 423.8 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02218/0.4375, allocations: 12.86 MB / 436.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0456/0.4831, allocations: 25.39 MB / 462 MB, free: 3.863 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01489/0.4981, allocations: 6.783 MB / 468.8 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01491/0.5131, allocations: 7.845 MB / 476.7 MB, free: 5.191 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006509/0.5196, allocations: 1.953 MB / 478.6 MB, free: 3.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009527/0.5292, allocations: 2.375 MB / 481 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007741/0.537, allocations: 3.963 MB / 485 MB, free: 12.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0172/0.5542, allocations: 7.564 MB / 492.5 MB, free: 5.293 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03756/0.5918, allocations: 25.73 MB / 0.5061 GB, free: 11.49 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.215e-05/0.5919, allocations: 0 / 0.5061 GB, free: 11.49 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.5919, allocations: 0 / 0.5061 GB, free: 11.49 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0009871/0.5929, allocations: 4 kB / 0.5061 GB, free: 11.48 MB / 430.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.05337/0.6463, allocations: 15.06 MB / 0.5208 GB, free: 12.3 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.6463, allocations: 15.97 kB / 0.5208 GB, free: 12.28 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03556/0.6819, allocations: 6.131 MB / 0.5268 GB, free: 6.129 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3984/1.08, allocations: 7.815 MB / 0.5345 GB, free: 126.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001168/1.082, allocations: 0.9148 MB / 0.5353 GB, free: 126.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005218/1.087, allocations: 1.193 MB / 0.5365 GB, free: 126.4 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05187/1.139, allocations: 18.66 MB / 0.5547 GB, free: 119.1 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007292/1.14, allocations: 27.14 kB / 0.5548 GB, free: 119.1 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005642/1.145, allocations: 0.4935 MB / 0.5552 GB, free: 118.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006164/1.146, allocations: 0.633 MB / 0.5559 GB, free: 118.6 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03498/1.181, allocations: 16.76 MB / 0.5722 GB, free: 108.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09432/1.275, allocations: 59.55 MB / 0.6304 GB, free: 48.34 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02058/1.296, allocations: 33.21 MB / 0.6628 GB, free: 11.22 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005761/1.302, allocations: 3.765 MB / 0.6665 GB, free: 7.457 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01487/1.317, allocations: 8.876 MB / 0.6752 GB, free: 14.54 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.035e-05/1.317, allocations: 69.31 kB / 0.6752 GB, free: 14.46 MB / 462.1 MB Notification: Performance of pre-optimization done (n=349): time 5.48e-06/1.317, allocations: 0 / 0.6752 GB, free: 14.46 MB / 462.1 MB Notification: Performance of matching and sorting (n=389): time 0.04102/1.358, allocations: 17.56 MB / 0.6924 GB, free: 12.75 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.894e-05/1.358, allocations: 94.47 kB / 0.6925 GB, free: 12.65 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009509/1.367, allocations: 5.033 MB / 0.6974 GB, free: 7.621 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008516/1.368, allocations: 89.7 kB / 0.6975 GB, free: 7.527 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004911/1.373, allocations: 5.452 MB / 0.7028 GB, free: 2.043 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002058/1.375, allocations: 1.35 MB / 0.7041 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002559/1.378, allocations: 1.314 MB / 0.7054 GB, free: 15.38 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/1.378, allocations: 305.1 kB / 0.7057 GB, free: 15.08 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005508/1.383, allocations: 2.91 MB / 0.7085 GB, free: 12.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00879/1.392, allocations: 5.876 MB / 0.7143 GB, free: 4.887 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2032/1.596, allocations: 9.439 MB / 0.7235 GB, free: 151.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.95e-05/1.596, allocations: 28.03 kB / 0.7235 GB, free: 151.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01759/1.613, allocations: 9.851 MB / 0.7331 GB, free: 148 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/1.613, allocations: 48.53 kB / 0.7332 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001973/1.614, allocations: 98.81 kB / 0.7333 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002672/1.616, allocations: 0.9436 MB / 0.7342 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006729/1.623, allocations: 1.58 MB / 0.7357 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01123/1.634, allocations: 10.19 MB / 0.7457 GB, free: 140.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005497/1.64, allocations: 411.9 kB / 0.7461 GB, free: 140.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001314/1.641, allocations: 351.2 kB / 0.7464 GB, free: 140.5 MB / 494.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.007508/1.649, allocations: 4.253 MB / 0.7506 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001286/1.65, allocations: 0.5134 MB / 0.7511 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009789/1.66, allocations: 6.484 MB / 0.7574 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-05/1.66, allocations: 44 kB / 0.7574 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.641e-05/1.66, allocations: 11.31 kB / 0.7575 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.295e-05/1.66, allocations: 21.41 kB / 0.7575 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02652/1.687, allocations: 15.72 MB / 0.7728 GB, free: 129.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/1.687, allocations: 5.844 kB / 0.7728 GB, free: 129.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003092/1.69, allocations: 0.741 MB / 0.7736 GB, free: 129.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0021/1.692, allocations: 0.8022 MB / 0.7743 GB, free: 129.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005396/1.692, allocations: 89.52 kB / 0.7744 GB, free: 129.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008891/1.701, allocations: 9.358 MB / 0.7836 GB, free: 120.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.701, allocations: 4 kB / 0.7836 GB, free: 120.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01341/1.715, allocations: 9.493 MB / 0.7928 GB, free: 111.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002765/1.718, allocations: 1.059 MB / 0.7939 GB, free: 110.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001193/1.719, allocations: 68 kB / 0.7939 GB, free: 110.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003017/1.722, allocations: 227.7 kB / 0.7942 GB, free: 110.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006537/1.722, allocations: 258.8 kB / 0.7944 GB, free: 110.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002466/1.723, allocations: 116 kB / 0.7945 GB, free: 110 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00586/1.729, allocations: 3.366 MB / 0.7978 GB, free: 106.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.41e-07/1.729, allocations: 0 / 0.7978 GB, free: 106.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008882/1.738, allocations: 1.883 MB / 0.7996 GB, free: 104.8 MB / 494.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.001095/1.739, allocations: 273.1 kB / 0.7999 GB, free: 104.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02665/1.765, allocations: 13.11 MB / 0.8127 GB, free: 91.38 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.566e-05/1.765, allocations: 1 kB / 0.8127 GB, free: 91.38 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005895/1.771, allocations: 3.555 MB / 0.8162 GB, free: 87.75 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008168/1.78, allocations: 1.312 MB / 0.8175 GB, free: 86.49 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03739/1.817, allocations: 19.68 MB / 0.8367 GB, free: 66.75 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009735/1.827, allocations: 7.109 MB / 0.8436 GB, free: 59.61 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002133/1.829, allocations: 463.3 kB / 0.8441 GB, free: 59.16 MB / 494.1 MB Notification: Performance of SimCode: time 9.81e-07/1.829, allocations: 0 / 0.8441 GB, free: 59.16 MB / 494.1 MB Notification: Performance of Templates: time 1.112/2.941, allocations: 461.3 MB / 1.295 GB, free: 154.7 MB / 0.4982 GB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches