Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_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.00106/0.00106, allocations: 114.7 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001142/0.001142, allocations: 204.5 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 59.94 kB / 308.4 MB, free: 15.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09547/0.09662, allocations: 50.53 MB / 358.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1909/0.2876, allocations: 40.08 MB / 399 MB, free: 12.92 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02626/0.3139, allocations: 10.64 MB / 409.7 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00916/0.3231, allocations: 309.8 kB / 410 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0197/0.3429, allocations: 8.529 MB / 418.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01208/0.355, allocations: 3.4 MB / 421.9 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007495/0.3625, allocations: 2.367 MB / 424.3 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01925/0.3817, allocations: 12.96 MB / 437.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03799/0.4198, allocations: 25.31 MB / 462.5 MB, free: 3.492 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01078/0.4306, allocations: 6.798 MB / 469.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01292/0.4436, allocations: 7.833 MB / 477.2 MB, free: 4.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005622/0.4493, allocations: 1.953 MB / 479.1 MB, free: 2.863 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007936/0.4572, allocations: 2.363 MB / 481.5 MB, free: 0.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006756/0.464, allocations: 3.955 MB / 485.4 MB, free: 12.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01314/0.4772, allocations: 7.56 MB / 493 MB, free: 4.945 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02806/0.5052, allocations: 25.9 MB / 0.5067 GB, free: 10.97 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.5053, allocations: 0 / 0.5067 GB, free: 10.97 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.5053, allocations: 0 / 0.5067 GB, free: 10.97 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000648/0.506, allocations: 0 / 0.5067 GB, free: 10.97 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.04396/0.5499, allocations: 15.03 MB / 0.5214 GB, free: 11.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.55, allocations: 8.031 kB / 0.5214 GB, free: 11.81 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03407/0.5841, allocations: 6.162 MB / 0.5274 GB, free: 5.625 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3325/0.9166, allocations: 8.058 MB / 0.5353 GB, free: 126.9 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001154/0.9178, allocations: 0.9064 MB / 0.5362 GB, free: 126.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004534/0.9224, allocations: 1.19 MB / 0.5374 GB, free: 126.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04356/0.9659, allocations: 18.66 MB / 0.5556 GB, free: 118.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005131/0.9665, allocations: 27.33 kB / 0.5556 GB, free: 118.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003174/0.9697, allocations: 498.3 kB / 0.5561 GB, free: 118.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000532/0.9702, allocations: 0.6424 MB / 0.5567 GB, free: 118.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03247/1.003, allocations: 16.77 MB / 0.5731 GB, free: 108.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0887/1.091, allocations: 58.81 MB / 0.6305 GB, free: 48.41 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01889/1.11, allocations: 33.22 MB / 0.663 GB, free: 11.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005357/1.116, allocations: 3.758 MB / 0.6666 GB, free: 7.535 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01411/1.13, allocations: 8.841 MB / 0.6753 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.054e-05/1.13, allocations: 69.31 kB / 0.6753 GB, free: 14.59 MB / 462.1 MB Notification: Performance of pre-optimization done (n=349): time 4.409e-06/1.13, allocations: 0 / 0.6753 GB, free: 14.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=389): time 0.03676/1.167, allocations: 17.56 MB / 0.6925 GB, free: 12.88 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.544e-05/1.167, allocations: 90.47 kB / 0.6926 GB, free: 12.77 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007498/1.174, allocations: 5.037 MB / 0.6975 GB, free: 7.742 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007794/1.175, allocations: 85.7 kB / 0.6976 GB, free: 7.652 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003397/1.179, allocations: 5.452 MB / 0.7029 GB, free: 2.168 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001725/1.18, allocations: 1.35 MB / 0.7042 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001942/1.182, allocations: 1.314 MB / 0.7055 GB, free: 15.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.499e-05/1.182, allocations: 305.1 kB / 0.7058 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004197/1.187, allocations: 2.906 MB / 0.7086 GB, free: 12.29 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007181/1.194, allocations: 5.881 MB / 0.7144 GB, free: 5.012 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.219/1.413, allocations: 9.435 MB / 0.7236 GB, free: 151.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.554e-05/1.413, allocations: 36.45 kB / 0.7236 GB, free: 151.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01672/1.43, allocations: 9.843 MB / 0.7332 GB, free: 148.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/1.43, allocations: 51.44 kB / 0.7333 GB, free: 148.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002166/1.43, allocations: 100.5 kB / 0.7334 GB, free: 148.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002642/1.433, allocations: 0.9402 MB / 0.7343 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005829/1.438, allocations: 1.583 MB / 0.7358 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01031/1.449, allocations: 10.17 MB / 0.7458 GB, free: 140.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004874/1.454, allocations: 414.8 kB / 0.7462 GB, free: 140.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007594/1.454, allocations: 360.6 kB / 0.7465 GB, free: 140.7 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.005772/1.46, allocations: 4.243 MB / 0.7506 GB, free: 138.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001055/1.461, allocations: 0.5143 MB / 0.7511 GB, free: 138.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009354/1.471, allocations: 6.478 MB / 0.7575 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.786e-05/1.471, allocations: 39.91 kB / 0.7575 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.091e-05/1.471, allocations: 16.61 kB / 0.7575 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.233e-05/1.471, allocations: 19.03 kB / 0.7575 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02381/1.495, allocations: 15.7 MB / 0.7729 GB, free: 129.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/1.495, allocations: 3.797 kB / 0.7729 GB, free: 129.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002958/1.498, allocations: 0.7465 MB / 0.7736 GB, free: 129.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001887/1.5, allocations: 0.7913 MB / 0.7744 GB, free: 129.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002662/1.5, allocations: 89.56 kB / 0.7745 GB, free: 129.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008127/1.508, allocations: 9.345 MB / 0.7836 GB, free: 120.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/1.508, allocations: 4 kB / 0.7836 GB, free: 120.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01171/1.52, allocations: 9.498 MB / 0.7929 GB, free: 112 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002512/1.522, allocations: 1.059 MB / 0.7939 GB, free: 110.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007299/1.523, allocations: 75.98 kB / 0.794 GB, free: 110.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002156/1.525, allocations: 219.8 kB / 0.7942 GB, free: 110.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005173/1.526, allocations: 262.8 kB / 0.7944 GB, free: 110.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002324/1.526, allocations: 112 kB / 0.7945 GB, free: 110.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003875/1.53, allocations: 3.363 MB / 0.7978 GB, free: 106.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.53, allocations: 6.125 kB / 0.7978 GB, free: 106.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005356/1.535, allocations: 1.884 MB / 0.7997 GB, free: 105.1 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.0005226/1.536, allocations: 260.3 kB / 0.7999 GB, free: 104.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009262/1.545, allocations: 7.663 MB / 0.8074 GB, free: 97.06 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/1.545, allocations: 4.375 kB / 0.8074 GB, free: 97.06 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004192/1.549, allocations: 3.56 MB / 0.8109 GB, free: 93.42 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005323/1.555, allocations: 1.296 MB / 0.8122 GB, free: 92.17 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03001/1.585, allocations: 19.7 MB / 0.8314 GB, free: 72.41 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00649/1.591, allocations: 7.325 MB / 0.8385 GB, free: 65.05 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00507/1.596, allocations: 2.156 MB / 0.8407 GB, free: 62.89 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/1.597, allocations: 415.3 kB / 0.8411 GB, free: 62.48 MB / 494.1 MB Notification: Performance of SimCode: time 5.31e-07/1.597, allocations: 0 / 0.8411 GB, free: 62.48 MB / 494.1 MB Notification: Performance of Templates: time 0.2819/1.879, allocations: 69.53 MB / 0.909 GB, free: 145.7 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches