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.001044/0.001044, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001499/0.002543, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001019/0.001019, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001487/0.002506, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9145/0.9145, allocations: 177.5 MB / 190 MB, free: 4.77 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09069/1.005, allocations: 53.87 MB / 243.9 MB, free: 14.83 MB / 250.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.212e-06/1.212e-06, allocations: 0 / 245.2 MB, free: 13.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.644e-05/1.765e-05, allocations: 2.312 kB / 245.2 MB, free: 13.51 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1426/0.1426, allocations: 37.92 MB / 283.1 MB, free: 2.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02248/0.1651, allocations: 11.2 MB / 294.3 MB, free: 15.63 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007873/0.173, allocations: 373.8 kB / 294.7 MB, free: 15.5 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01262/0.1856, allocations: 9.043 MB / 303.8 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01097/0.1966, allocations: 3.566 MB / 307.3 MB, free: 8.617 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005858/0.2024, allocations: 2.376 MB / 309.7 MB, free: 6.734 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01439/0.2168, allocations: 13.59 MB / 323.3 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02775/0.2446, allocations: 17.16 MB / 340.4 MB, free: 10.21 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02392/0.2685, allocations: 11.1 MB / 351.5 MB, free: 15.04 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01117/0.2796, allocations: 7.509 MB / 359.1 MB, free: 7.52 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005132/0.2848, allocations: 1.941 MB / 361 MB, free: 5.578 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007624/0.2924, allocations: 2.362 MB / 363.4 MB, free: 3.215 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005327/0.2977, allocations: 3.25 MB / 366.6 MB, free: 15.96 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01207/0.3098, allocations: 4.27 MB / 370.9 MB, free: 11.68 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02134/0.3311, allocations: 11.88 MB / 382.8 MB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.74e-05/0.3312, allocations: 4 kB / 382.8 MB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3312, allocations: 0 / 382.8 MB, free: 15.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006442/0.3318, allocations: 0 / 382.8 MB, free: 15.77 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.03061/0.3624, allocations: 17.1 MB / 399.9 MB, free: 14.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.3625, allocations: 16.56 kB / 399.9 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01827/0.3807, allocations: 6.329 MB / 406.2 MB, free: 8.184 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009785/0.3905, allocations: 4.407 MB / 410.6 MB, free: 3.676 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006746/0.3912, allocations: 0.9109 MB / 411.5 MB, free: 2.762 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003384/0.3946, allocations: 1.203 MB / 412.7 MB, free: 1.559 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02273/0.4173, allocations: 9.656 MB / 422.4 MB, free: 7.758 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003734/0.4177, allocations: 19.89 kB / 422.4 MB, free: 7.738 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001895/0.4196, allocations: 496 kB / 422.9 MB, free: 7.254 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004395/0.42, allocations: 0.6264 MB / 423.5 MB, free: 6.625 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01074/0.4308, allocations: 4.672 MB / 428.2 MB, free: 1.926 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1876/0.6184, allocations: 36.8 MB / 465 MB, free: 79.11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007962/0.6264, allocations: 6.142 MB / 471.1 MB, free: 77.66 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001744/0.6281, allocations: 1.292 MB / 472.4 MB, free: 77.46 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003318/0.6284, allocations: 165 kB / 472.6 MB, free: 77.44 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.597e-05/0.6285, allocations: 81.84 kB / 472.7 MB, free: 77.37 MB / 394.7 MB Notification: Performance of pre-optimization done (n=478): time 8.686e-06/0.6285, allocations: 0 / 472.7 MB, free: 77.37 MB / 394.7 MB Notification: Performance of matching and sorting (n=520): time 0.02326/0.6518, allocations: 10.66 MB / 483.3 MB, free: 70.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.6518, allocations: 107.5 kB / 483.4 MB, free: 70.71 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003108/0.6549, allocations: 3.308 MB / 486.7 MB, free: 68.07 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002542/0.6552, allocations: 105.7 kB / 486.8 MB, free: 67.96 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001419/0.6566, allocations: 4.931 MB / 491.8 MB, free: 63.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008553/0.6575, allocations: 1.85 MB / 493.6 MB, free: 61.45 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001439/0.6589, allocations: 1.368 MB / 495 MB, free: 60.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 2.253e-05/0.6589, allocations: 305.1 kB / 495.3 MB, free: 59.93 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.6603, allocations: 0.9745 MB / 496.3 MB, free: 58.95 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002087/0.6624, allocations: 3.819 MB / 0.4884 GB, free: 53.98 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004082/0.6665, allocations: 5.866 MB / 0.4941 GB, free: 47.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.675e-05/0.6666, allocations: 28 kB / 0.4941 GB, free: 47.24 MB / 394.7 MB Notification: Performance of matching and sorting (n=988) (initialization): time 0.005797/0.6724, allocations: 4.864 MB / 0.4989 GB, free: 43.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.555e-05/0.6724, allocations: 48 kB / 0.4989 GB, free: 42.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.73e-05/0.6725, allocations: 96 kB / 0.499 GB, free: 42.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001423/0.6739, allocations: 0.8182 MB / 0.4998 GB, free: 42.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0034/0.6773, allocations: 1.924 MB / 0.5017 GB, free: 40.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003878/0.6812, allocations: 6.097 MB / 0.5076 GB, free: 34.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003195/0.6844, allocations: 303.7 kB / 0.5079 GB, free: 33.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006861/0.6851, allocations: 308 kB / 0.5082 GB, free: 33.45 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * 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 (937): * Single equations (assignments): 932 * 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,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002454/0.6875, allocations: 0.6319 MB / 0.5088 GB, free: 32.94 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008747/0.6884, allocations: 483.5 kB / 0.5093 GB, free: 32.46 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00362/0.692, allocations: 3.114 MB / 0.5123 GB, free: 29.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-05/0.692, allocations: 48 kB / 0.5124 GB, free: 29.25 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.918e-06/0.692, allocations: 16 kB / 0.5124 GB, free: 29.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.477e-05/0.6921, allocations: 23.91 kB / 0.5124 GB, free: 29.21 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01291/0.705, allocations: 8.467 MB / 0.5207 GB, free: 21.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.705, allocations: 4 kB / 0.5207 GB, free: 21.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00217/0.7071, allocations: 0.9943 MB / 0.5217 GB, free: 20.51 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001657/0.7088, allocations: 0.6333 MB / 0.5223 GB, free: 19.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001285/0.7101, allocations: 0.6624 MB / 0.5229 GB, free: 19.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003104/0.7104, allocations: 104 kB / 0.523 GB, free: 19.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004301/0.7147, allocations: 5.655 MB / 0.5285 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.273e-06/0.7147, allocations: 10.08 kB / 0.5286 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005101/0.7198, allocations: 3.964 MB / 0.5324 GB, free: 9.184 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000768/0.7206, allocations: 92 kB / 0.5325 GB, free: 9.094 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.7219, allocations: 128 kB / 0.5326 GB, free: 8.969 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000443/0.7224, allocations: 354.5 kB / 0.533 GB, free: 8.625 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001838/0.7226, allocations: 104 kB / 0.5331 GB, free: 8.523 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001435/0.724, allocations: 1.536 MB / 0.5346 GB, free: 7.176 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.724, allocations: 0 / 0.5346 GB, free: 7.176 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005438/0.7294, allocations: 1.977 MB / 0.5365 GB, free: 5.199 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (499): * Single equations (assignments): 494 * 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 Backend phase and start with SimCode phase: time 0.0006689/0.7301, allocations: 285 kB / 0.5368 GB, free: 4.961 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004914/0.735, allocations: 4.144 MB / 0.5408 GB, free: 1.184 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002179/0.7352, allocations: 128.8 kB / 0.5409 GB, free: 1.047 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002529/0.7378, allocations: 2.345 MB / 0.5432 GB, free: 14.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007712/0.7455, allocations: 10.71 MB / 0.5537 GB, free: 2.164 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06982/0.8153, allocations: 17.73 MB / 0.571 GB, free: 356 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1227/0.938, allocations: 2.317 MB / 0.5733 GB, free: 115.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003547/0.9415, allocations: 0.8845 MB / 0.5741 GB, free: 115.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003202/0.9447, allocations: 1.228 MB / 0.5753 GB, free: 115.1 MB / 426.7 MB Notification: Performance of SimCode: time 2.104e-06/0.9447, allocations: 0 / 0.5753 GB, free: 115.1 MB / 426.7 MB Notification: Performance of Templates: time 0.103/1.048, allocations: 80.6 MB / 0.6541 GB, free: 60.92 MB / 426.7 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.318665602244437]