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) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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=20000,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=20000,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") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001369/0.001369, allocations: 113.5 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.001309, allocations: 215.1 kB / 19.8 MB, free: 2.559 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.424/1.424, allocations: 230.4 MB / 251.1 MB, free: 8.453 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.0019/0.0019, allocations: 75.81 kB / 369 MB, free: 6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2398, allocations: 53.31 MB / 422.3 MB, free: 7.816 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04775/0.2876, allocations: 40.24 MB / 462.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02564/0.3132, allocations: 10.68 MB / 473.2 MB, free: 4.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00838/0.3216, allocations: 307 kB / 473.5 MB, free: 4.387 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02071/0.3423, allocations: 8.634 MB / 482.2 MB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01225/0.3546, allocations: 3.487 MB / 485.7 MB, free: 8.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007903/0.3625, allocations: 2.395 MB / 488.1 MB, free: 5.836 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01907/0.3815, allocations: 12.97 MB / 0.4893 GB, free: 8.82 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03311/0.4147, allocations: 19.64 MB / 0.5085 GB, free: 5.027 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01176/0.4264, allocations: 6.853 MB / 0.5152 GB, free: 14.16 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01302/0.4394, allocations: 7.911 MB / 0.5229 GB, free: 6.219 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004697/0.4441, allocations: 1.953 MB / 0.5248 GB, free: 4.266 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006816/0.4509, allocations: 2.374 MB / 0.5271 GB, free: 1.891 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006192/0.4571, allocations: 3.967 MB / 0.531 GB, free: 13.91 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01413/0.4713, allocations: 7.56 MB / 0.5384 GB, free: 6.32 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4621/0.9334, allocations: 25.96 MB / 0.5637 GB, free: 47.74 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.9334, allocations: 3.781 kB / 0.5637 GB, free: 47.74 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.9334, allocations: 3.312 kB / 0.5637 GB, free: 47.74 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006809/0.9341, allocations: 0 / 0.5637 GB, free: 47.74 MB / 462.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.04442/0.9785, allocations: 15.33 MB / 0.5787 GB, free: 40.91 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.9786, allocations: 9.344 kB / 0.5787 GB, free: 40.91 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03343/1.012, allocations: 6.124 MB / 0.5847 GB, free: 38.48 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01657/1.029, allocations: 8.111 MB / 0.5926 GB, free: 34.12 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000878/1.029, allocations: 0.901 MB / 0.5935 GB, free: 33.71 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007302/1.037, allocations: 1.199 MB / 0.5947 GB, free: 33.31 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05574/1.092, allocations: 18.69 MB / 0.6129 GB, free: 16.48 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000659/1.093, allocations: 22.53 kB / 0.6129 GB, free: 16.46 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005343/1.098, allocations: 0.4901 MB / 0.6134 GB, free: 15.99 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005393/1.099, allocations: 0.6493 MB / 0.614 GB, free: 15.34 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03909/1.138, allocations: 16.8 MB / 0.6304 GB, free: 14.53 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1314/1.27, allocations: 58.98 MB / 0.688 GB, free: 3.07 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03463/1.304, allocations: 32.81 MB / 0.7201 GB, free: 14.41 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007511/1.312, allocations: 3.418 MB / 0.7234 GB, free: 10.98 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0224/1.334, allocations: 8.888 MB / 0.7321 GB, free: 2.129 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.704e-05/1.334, allocations: 73.31 kB / 0.7322 GB, free: 2.047 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=349): time 4.849e-06/1.334, allocations: 0 / 0.7322 GB, free: 2.047 MB / 0.5607 GB Notification: Performance of matching and sorting (n=389): time 0.04548/1.38, allocations: 17.72 MB / 0.7495 GB, free: 244 kB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.93e-05/1.38, allocations: 102.5 kB / 0.7496 GB, free: 128 kB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009654/1.389, allocations: 5.038 MB / 0.7545 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.001035/1.39, allocations: 89.7 kB / 0.7546 GB, free: 11 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.004991/1.395, allocations: 5.638 MB / 0.7601 GB, free: 5.352 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.002434/1.398, allocations: 1.424 MB / 0.7615 GB, free: 3.945 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002511/1.4, allocations: 1.331 MB / 0.7628 GB, free: 2.605 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001667/1.401, allocations: 301.1 kB / 0.7631 GB, free: 2.309 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2827/1.683, allocations: 2.906 MB / 0.7659 GB, free: 223 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006931/1.69, allocations: 5.887 MB / 0.7716 GB, free: 219.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01012/1.7, allocations: 9.455 MB / 0.7809 GB, free: 213.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001112/1.7, allocations: 27.5 kB / 0.7809 GB, free: 213.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01733/1.718, allocations: 9.873 MB / 0.7905 GB, free: 210 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 9.115e-05/1.718, allocations: 46.75 kB / 0.7906 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001536/1.718, allocations: 101.6 kB / 0.7907 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002202/1.72, allocations: 0.9361 MB / 0.7916 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005168/1.725, allocations: 1.592 MB / 0.7932 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009613/1.735, allocations: 10.18 MB / 0.8031 GB, free: 202.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005248/1.74, allocations: 416.6 kB / 0.8035 GB, free: 202.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006023/1.741, allocations: 358.4 kB / 0.8038 GB, free: 202.5 MB / 0.5919 GB 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.00646/1.747, allocations: 4.244 MB / 0.808 GB, free: 200 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001104/1.748, allocations: 0.538 MB / 0.8085 GB, free: 199.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009379/1.758, allocations: 6.462 MB / 0.8148 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.99e-05/1.758, allocations: 40 kB / 0.8149 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/1.758, allocations: 11.94 kB / 0.8149 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.987e-05/1.758, allocations: 26.89 kB / 0.8149 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02305/1.781, allocations: 15.71 MB / 0.8302 GB, free: 181.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.301e-05/1.781, allocations: 4 kB / 0.8302 GB, free: 181.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002899/1.784, allocations: 0.7528 MB / 0.831 GB, free: 180.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001907/1.786, allocations: 0.792 MB / 0.8317 GB, free: 180.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002486/1.786, allocations: 90.55 kB / 0.8318 GB, free: 180.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008225/1.794, allocations: 9.362 MB / 0.841 GB, free: 170.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/1.794, allocations: 4.062 kB / 0.841 GB, free: 170.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01225/1.806, allocations: 9.527 MB / 0.8503 GB, free: 161.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002581/1.809, allocations: 1.085 MB / 0.8513 GB, free: 160.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008106/1.81, allocations: 76.66 kB / 0.8514 GB, free: 160.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002311/1.812, allocations: 219.8 kB / 0.8516 GB, free: 160.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005189/1.813, allocations: 270.7 kB / 0.8519 GB, free: 159.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000235/1.813, allocations: 112 kB / 0.852 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004107/1.817, allocations: 3.363 MB / 0.8553 GB, free: 156.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/1.817, allocations: 0 / 0.8553 GB, free: 156.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.005838/1.823, allocations: 1.889 MB / 0.8571 GB, free: 154.5 MB / 0.5919 GB 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.0005291/1.823, allocations: 257.5 kB / 0.8574 GB, free: 154.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.009294/1.833, allocations: 7.368 MB / 0.8646 GB, free: 146.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/1.833, allocations: 0 / 0.8646 GB, free: 146.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004029/1.837, allocations: 3.334 MB / 0.8678 GB, free: 143.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005524/1.842, allocations: 1.304 MB / 0.8691 GB, free: 142.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03041/1.873, allocations: 20.1 MB / 0.8887 GB, free: 122 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006745/1.879, allocations: 7.336 MB / 0.8959 GB, free: 114.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00536/1.885, allocations: 2.149 MB / 0.898 GB, free: 112.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001139/1.886, allocations: 423.3 kB / 0.8984 GB, free: 112 MB / 0.5919 GB Notification: Performance of SimCode: time 1.032e-06/1.886, allocations: 4 kB / 0.8984 GB, free: 112 MB / 0.5919 GB Notification: Performance of Templates: time 0.1166/2.002, allocations: 74.36 MB / 0.971 GB, free: 38.39 MB / 0.5919 GB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/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/jenkins/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) [Timeout 660] Reference file matches