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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001032/0.001032, allocations: 85.81 kB / 21.43 MB, free: 3.066 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001011, allocations: 163.2 kB / 24.82 MB, free: 9.25 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9178/0.9178, allocations: 177 MB / 205.1 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] 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=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",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=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 273.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.184e-05/1.334e-05, allocations: 2.312 kB / 273.4 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1229/0.1229, allocations: 37.57 MB / 311 MB, free: 8.031 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01572/0.1386, allocations: 10.55 MB / 321.5 MB, free: 292 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005073/0.1437, allocations: 373.5 kB / 321.9 MB, free: 160 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00876/0.1525, allocations: 8.822 MB / 330.7 MB, free: 8.418 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006078/0.1586, allocations: 3.577 MB / 334.3 MB, free: 4.82 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003134/0.1617, allocations: 2.365 MB / 336.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.009677/0.1714, allocations: 13.51 MB / 350.2 MB, free: 4.895 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01732/0.1887, allocations: 17.19 MB / 367.4 MB, free: 3.543 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01037/0.1991, allocations: 10.66 MB / 378 MB, free: 8.863 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009701/0.2088, allocations: 7.45 MB / 385.5 MB, free: 1.398 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004359/0.2131, allocations: 1.941 MB / 387.4 MB, free: 15.45 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006262/0.2194, allocations: 2.35 MB / 389.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004354/0.2237, allocations: 4.075 MB / 393.8 MB, free: 9.02 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008487/0.2322, allocations: 5.111 MB / 398.9 MB, free: 3.898 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01747/0.2497, allocations: 12.57 MB / 411.5 MB, free: 7.293 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.2497, allocations: 0 / 411.5 MB, free: 7.293 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2497, allocations: 0 / 411.5 MB, free: 7.293 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005283/0.2502, allocations: 0 / 411.5 MB, free: 7.293 MB / 362.7 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.02506/0.2753, allocations: 15.5 MB / 427 MB, free: 7.668 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.2753, allocations: 11.98 kB / 427 MB, free: 7.656 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01936/0.2947, allocations: 6.199 MB / 433.2 MB, free: 1.445 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.25/0.5447, allocations: 7.262 MB / 440.5 MB, free: 75.61 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008479/0.5456, allocations: 0.9055 MB / 441.4 MB, free: 75.58 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003455/0.549, allocations: 1.197 MB / 442.6 MB, free: 75.58 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03291/0.5819, allocations: 9.431 MB / 452 MB, free: 74.64 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006681/0.5826, allocations: 25.12 kB / 452 MB, free: 74.64 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00339/0.586, allocations: 0.4918 MB / 452.5 MB, free: 74.64 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006157/0.5866, allocations: 0.644 MB / 453.2 MB, free: 74.61 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0185/0.6051, allocations: 4.267 MB / 457.4 MB, free: 74.31 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08118/0.6863, allocations: 46.92 MB / 0.4925 GB, free: 35.57 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008662/0.6949, allocations: 7.827 MB / 0.5002 GB, free: 29.45 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002025/0.697, allocations: 1.469 MB / 0.5016 GB, free: 28.02 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009708/0.7067, allocations: 5.388 MB / 0.5069 GB, free: 22.95 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.677e-05/0.7067, allocations: 72.14 kB / 0.507 GB, free: 22.87 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 5.38e-06/0.7067, allocations: 0 / 0.507 GB, free: 22.87 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.01808/0.7248, allocations: 8.794 MB / 0.5155 GB, free: 14.51 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.7249, allocations: 90.47 kB / 0.5156 GB, free: 14.41 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005171/0.73, allocations: 4.362 MB / 0.5199 GB, free: 10.7 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007609/0.7308, allocations: 89.7 kB / 0.52 GB, free: 10.61 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002528/0.7333, allocations: 5.944 MB / 0.5258 GB, free: 4.832 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00141/0.7347, allocations: 1.454 MB / 0.5272 GB, free: 3.453 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001498/0.7362, allocations: 1.493 MB / 0.5287 GB, free: 2.082 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 5.101e-05/0.7363, allocations: 480.7 kB / 0.5291 GB, free: 1.609 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.7373, allocations: 0.7391 MB / 0.5298 GB, free: 0.8672 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003281/0.7406, allocations: 5.241 MB / 0.535 GB, free: 9.906 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006501/0.7471, allocations: 6.71 MB / 0.5415 GB, free: 1.82 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001136/0.7472, allocations: 28 kB / 0.5415 GB, free: 1.793 MB / 394.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.008978/0.7562, allocations: 5.607 MB / 0.547 GB, free: 12.79 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.94e-05/0.7563, allocations: 48 kB / 0.5471 GB, free: 12.75 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001146/0.7564, allocations: 100 kB / 0.5471 GB, free: 12.65 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001773/0.7581, allocations: 0.8543 MB / 0.548 GB, free: 11.79 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003446/0.7616, allocations: 1.467 MB / 0.5494 GB, free: 10.43 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006504/0.7681, allocations: 8.205 MB / 0.5574 GB, free: 2.047 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003808/0.7719, allocations: 275.7 kB / 0.5577 GB, free: 1.777 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009752/0.7729, allocations: 300 kB / 0.558 GB, free: 1.484 MB / 410.8 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.002791/0.7757, allocations: 0.6262 MB / 0.5586 GB, free: 0.9609 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/0.7768, allocations: 0.6334 MB / 0.5592 GB, free: 332 kB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004547/0.7813, allocations: 3.271 MB / 0.5624 GB, free: 13.04 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.965e-05/0.7813, allocations: 36 kB / 0.5624 GB, free: 13.01 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.7813, allocations: 12 kB / 0.5624 GB, free: 13 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.311e-05/0.7814, allocations: 19.92 kB / 0.5625 GB, free: 12.98 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01336/0.7947, allocations: 8.675 MB / 0.5709 GB, free: 4.988 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.7947, allocations: 7.938 kB / 0.5709 GB, free: 4.98 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001517/0.7962, allocations: 0.6416 MB / 0.5716 GB, free: 4.367 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001402/0.7976, allocations: 0.7078 MB / 0.5723 GB, free: 3.648 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002059/0.7979, allocations: 87.95 kB / 0.5723 GB, free: 3.562 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005272/0.8031, allocations: 7.764 MB / 0.5799 GB, free: 11.59 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.8031, allocations: 7.984 kB / 0.5799 GB, free: 11.58 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005715/0.8088, allocations: 4.031 MB / 0.5839 GB, free: 7.52 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001612/0.8105, allocations: 0.8427 MB / 0.5847 GB, free: 6.676 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004451/0.8109, allocations: 71.98 kB / 0.5848 GB, free: 6.605 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/0.812, allocations: 108 kB / 0.5849 GB, free: 6.5 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004833/0.8125, allocations: 281.5 kB / 0.5851 GB, free: 6.227 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002225/0.8127, allocations: 91.97 kB / 0.5852 GB, free: 6.137 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.002752/0.8155, allocations: 1.894 MB / 0.5871 GB, free: 4.438 MB / 442.8 MB Notification: Performance of sort global known variables: time 4.61e-07/0.8155, allocations: 0 / 0.5871 GB, free: 4.438 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.006258/0.8217, allocations: 1.863 MB / 0.5889 GB, free: 2.574 MB / 442.8 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.000611/0.8223, allocations: 265.8 kB / 0.5891 GB, free: 2.348 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.1377/0.96, allocations: 4.26 MB / 0.5933 GB, free: 124.8 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.96, allocations: 5.562 kB / 0.5933 GB, free: 124.8 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003339/0.9634, allocations: 2.117 MB / 0.5954 GB, free: 124.2 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003655/0.967, allocations: 1.204 MB / 0.5966 GB, free: 124.1 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02552/0.9926, allocations: 16.98 MB / 0.6131 GB, free: 117.7 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003223/0.9958, allocations: 3.079 MB / 0.6161 GB, free: 117.3 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.003226/0.999, allocations: 0.809 MB / 0.6169 GB, free: 117.1 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002345/1.001, allocations: 1.262 MB / 0.6182 GB, free: 117.1 MB / 442.8 MB Notification: Performance of SimCode: time 1.513e-06/1.001, allocations: 0 / 0.6182 GB, free: 117.1 MB / 442.8 MB Notification: Performance of Templates: time 0.1435/1.145, allocations: 70.22 MB / 0.6867 GB, free: 59.9 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] 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.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.307390238158405]