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.0007956/0.0007956, allocations: 91.48 kB / 17.35 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009959/0.000996, allocations: 200.1 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.7 MB / 246.8 MB, free: 9.723 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002149/0.0002149, allocations: 4 kB / 307.8 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09341/0.09364, allocations: 51.53 MB / 359.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.194/0.2877, allocations: 37.79 MB / 397.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02421/0.3119, allocations: 10.45 MB / 407.5 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008673/0.3206, allocations: 285.2 kB / 407.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006962/0.3276, allocations: 2.13 MB / 409.9 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0118/0.3395, allocations: 3.084 MB / 413 MB, free: 3.508 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006349/0.3458, allocations: 1.988 MB / 415 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01626/0.3621, allocations: 13.04 MB / 428.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04165/0.4038, allocations: 24.1 MB / 452.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008178/0.412, allocations: 4.755 MB / 456.9 MB, free: 9.918 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00946/0.4215, allocations: 5.928 MB / 462.8 MB, free: 3.965 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002295/0.4238, allocations: 0.7617 MB / 463.6 MB, free: 3.203 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005571/0.4294, allocations: 1.175 MB / 464.8 MB, free: 2.027 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004224/0.4336, allocations: 2.498 MB / 467.3 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01177/0.4454, allocations: 5.98 MB / 473.2 MB, free: 9.504 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03738/0.4828, allocations: 24.28 MB / 497.5 MB, free: 1.141 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.4829, allocations: 4 kB / 497.5 MB, free: 1.137 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.4829, allocations: 4 kB / 497.5 MB, free: 1.133 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006473/0.4836, allocations: 0 / 497.5 MB, free: 1.133 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.05524/0.5388, allocations: 12.45 MB / 0.498 GB, free: 4.566 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.5389, allocations: 12.03 kB / 0.498 GB, free: 4.555 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06085/0.5998, allocations: 6.151 MB / 0.5041 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0253/0.6251, allocations: 7.828 MB / 0.5117 GB, free: 6.473 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001651/0.6268, allocations: 0.9032 MB / 0.5126 GB, free: 5.566 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005091/0.6319, allocations: 1.203 MB / 0.5138 GB, free: 4.363 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04566/0.6776, allocations: 18.66 MB / 0.532 GB, free: 1.613 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003433/0.678, allocations: 15.81 kB / 0.532 GB, free: 1.598 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001844/0.6799, allocations: 0.496 MB / 0.5325 GB, free: 1.102 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005591/0.6804, allocations: 0.6499 MB / 0.5331 GB, free: 460 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4076/1.088, allocations: 16.75 MB / 0.5495 GB, free: 121.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08653/1.175, allocations: 59.75 MB / 0.6078 GB, free: 71.82 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01957/1.194, allocations: 33.2 MB / 0.6402 GB, free: 34.72 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005302/1.2, allocations: 3.769 MB / 0.6439 GB, free: 30.94 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01241/1.212, allocations: 8.885 MB / 0.6526 GB, free: 22.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/1.212, allocations: 77.31 kB / 0.6527 GB, free: 21.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 5.019e-06/1.212, allocations: 0 / 0.6527 GB, free: 21.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03093/1.243, allocations: 17.61 MB / 0.6699 GB, free: 4.172 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/1.243, allocations: 94.47 kB / 0.67 GB, free: 4.066 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00644/1.25, allocations: 5.033 MB / 0.6749 GB, free: 15.04 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005952/1.25, allocations: 85.7 kB / 0.675 GB, free: 14.95 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003447/1.254, allocations: 5.457 MB / 0.6803 GB, free: 9.457 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001418/1.255, allocations: 1.352 MB / 0.6816 GB, free: 8.117 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007314/1.256, allocations: 0.5242 MB / 0.6821 GB, free: 7.586 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.598e-05/1.256, allocations: 309.1 kB / 0.6824 GB, free: 7.281 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004601/1.26, allocations: 2.906 MB / 0.6853 GB, free: 4.371 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006479/1.267, allocations: 5.879 MB / 0.691 GB, free: 13.09 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01212/1.279, allocations: 9.444 MB / 0.7002 GB, free: 2.207 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000145/1.279, allocations: 36 kB / 0.7003 GB, free: 2.172 MB / 478.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01833/1.298, allocations: 9.844 MB / 0.7099 GB, free: 8.262 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.135e-05/1.298, allocations: 48.38 kB / 0.7099 GB, free: 8.215 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001791/1.298, allocations: 100 kB / 0.71 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002629/1.301, allocations: 0.9373 MB / 0.7109 GB, free: 7.168 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006199/1.307, allocations: 1.579 MB / 0.7125 GB, free: 5.586 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2136/1.52, allocations: 9.485 MB / 0.7217 GB, free: 150.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005351/1.526, allocations: 408.5 kB / 0.7221 GB, free: 150.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001088/1.527, allocations: 352.8 kB / 0.7225 GB, free: 150.1 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.007792/1.535, allocations: 4.252 MB / 0.7266 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001386/1.536, allocations: 0.51 MB / 0.7271 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01126/1.547, allocations: 6.496 MB / 0.7334 GB, free: 147.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.934e-05/1.547, allocations: 42.72 kB / 0.7335 GB, free: 147.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.999e-05/1.547, allocations: 11.14 kB / 0.7335 GB, free: 147.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.523e-05/1.548, allocations: 23.81 kB / 0.7335 GB, free: 147.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02755/1.575, allocations: 15.73 MB / 0.7489 GB, free: 141.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.156e-05/1.575, allocations: 6.906 kB / 0.7489 GB, free: 141.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00509/1.58, allocations: 0.7426 MB / 0.7496 GB, free: 141 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003472/1.584, allocations: 0.7937 MB / 0.7504 GB, free: 140.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005922/1.584, allocations: 82.89 kB / 0.7505 GB, free: 140.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01338/1.598, allocations: 8.685 MB / 0.7589 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/1.598, allocations: 0 / 0.7589 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02151/1.619, allocations: 9.496 MB / 0.7682 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004078/1.623, allocations: 1.07 MB / 0.7693 GB, free: 130.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001241/1.625, allocations: 71.02 kB / 0.7693 GB, free: 130.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003608/1.628, allocations: 229.3 kB / 0.7696 GB, free: 130.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007837/1.629, allocations: 262.7 kB / 0.7698 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003525/1.629, allocations: 113.8 kB / 0.7699 GB, free: 130.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006397/1.636, allocations: 3.365 MB / 0.7732 GB, free: 129.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.11e-07/1.636, allocations: 0 / 0.7732 GB, free: 129.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00647/1.642, allocations: 1.887 MB / 0.775 GB, free: 127.2 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.0006586/1.643, allocations: 262.7 kB / 0.7753 GB, free: 127 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01028/1.653, allocations: 7.661 MB / 0.7828 GB, free: 120.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/1.653, allocations: 0 / 0.7828 GB, free: 120.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004534/1.658, allocations: 3.559 MB / 0.7862 GB, free: 117 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008397/1.666, allocations: 1.235 MB / 0.7875 GB, free: 115.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03239/1.699, allocations: 25.07 MB / 0.8119 GB, free: 91.45 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006973/1.706, allocations: 7.331 MB / 0.8191 GB, free: 84.09 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005862/1.712, allocations: 2.156 MB / 0.8212 GB, free: 81.93 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001122/1.713, allocations: 407.3 kB / 0.8216 GB, free: 81.53 MB / 494.1 MB Notification: Performance of SimCode: time 7.31e-07/1.713, allocations: 4 kB / 0.8216 GB, free: 81.53 MB / 494.1 MB Notification: Performance of Templates: time 0.1054/1.818, allocations: 72.86 MB / 0.8927 GB, free: 9.168 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 -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/jenkins/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/jenkins/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